Day6. Namespace style
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user