This commit is contained in:
Electrominch
2022-10-06 00:46:00 +03:00
parent 062e03bdbf
commit cb2f99c3a8
21 changed files with 434 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
namespace _142._Linked_List_Cycle_II
{
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);
}
}
}