-
Notifications
You must be signed in to change notification settings - Fork 0
/
62-TaleOfTwoStacks.cs
46 lines (43 loc) · 1.25 KB
/
62-TaleOfTwoStacks.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HackerRank
{
internal class TaleOfTwoStacks_Solution
{
public static int TwoStacks(List<Records> records)
{
for(int i = 0; i < records.Count; i++)
{
}
return 1;
}
}
internal class TaleOfTwoStacks_Result
{
public static void Input()
{
List<Records> records = new List<Records>
{
new Records { key = 1, value = 12 },
new Records { key = 1, value = 13 },
new Records { key = 2, value = 0 },
new Records { key = 2, value = 0 },
new Records { key = 1, value = 15 },
new Records { key = 3, value = 0 }
};
int result = TaleOfTwoStacks_Solution.TwoStacks(records);
Console.WriteLine(result);
}
}
public class Records
{
//---- 1-Enqueue.
//---- 2-Dequeue.
//---- 3-Peek.
public int key { get; set; }
public int value { get; set; }
}
}