-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsandbox.cs
61 lines (35 loc) · 1.13 KB
/
sandbox.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
using System;
using System.Collections.Generic;
using System.Linq;
// you can also use other imports, for example:
// using System.Collections.Generic;
// you can write to stdout for debugging purposes, e.g.
// Console.WriteLine("this is a debug message");
namespace Sandbox
{
class Solution {
public void Test()
{
Console.WriteLine($"=== Sandbox Test Execution ===");
// var Solution = new Solution();
string result;
String passFail = "FAILED";
result = solution( new int[] { 1,2,8,15,55} );
Console.WriteLine($"result: {result}");
Console.WriteLine($"TEST: {passFail}");
Console.WriteLine($" ============================================ Next ============================================ ");
return;
}
public void log(string l)
{
Console.WriteLine(l);
}
public string solution(int[] A)
{
// write your code in C# 6.0 with .NET 4.5 (Mono)
// figure out if array has all (and only) numbers in the sequence 1...N
var result = "0";
return result;
}
}
}