Day6. Namespace style

This commit is contained in:
Electrominch
2022-10-07 16:36:27 +03:00
parent 62104da8f1
commit 5cae083979
51 changed files with 589 additions and 202 deletions

View File

@@ -1,15 +1,14 @@
namespace _142._Linked_List_Cycle_II
{
internal class Program
{
static void Main(string[] args)
{
var l1 = new ListNode(3);
var l2 = new ListNode(2);
namespace _142._Linked_List_Cycle_II;
l1.next = l2;
l2.next = l1;
Console.WriteLine(new Solution().DetectCycle(l1)?.val);
}
internal class Program
{
static void Main(string[] args)
{
var l1 = new ListNode(3);
var l2 = new ListNode(2);
l1.next = l2;
l2.next = l1;
Console.WriteLine(new Solution().DetectCycle(l1)?.val);
}
}