task_id
stringlengths
8
10
language
stringclasses
1 value
prompt
stringlengths
366
1.93k
test
stringlengths
438
26.2k
entry_point
stringlengths
1
24
stop_tokens
listlengths
1
1
csharp_103
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// You are given two positive integers n and...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = RoundedAvg(1,5); var expected1 = "0b11"; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exceptio...
RoundedAvg
[ "\n }\n" ]
csharp_104
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// Given a list of positive integers x. retu...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = UniqueDigits(new List<int> {15,33,1422,1}); var expected1 = new List<int> {1,15,33}; var result1 = compareLogic.Compare(actual1, expected1); ...
UniqueDigits
[ "\n }\n" ]
csharp_105
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// Given an array of integers, ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = ByLength(new List<int> {2,1,1,4,5,8,2,3}); var expected1 = new List<string> {"Eight","Five","Four","Three","Two","Two","One","One"}; var result1 = comp...
ByLength
[ "\n }\n" ]
csharp_106
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// Implement the Function F that takes n as ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = F(5); var expected1 = new List<int> {1,2,6,24,15}; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw ne...
F
[ "\n }\n" ]
csharp_107
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// Given a positive integer n, ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = EvenOddPalindrome(123); var expected1 = new List<int> {8,13}; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual...
EvenOddPalindrome
[ "\n }\n" ]
csharp_108
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// Write a function CountNums w...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = CountNums(new List<int> {}); var expected1 = 0; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new E...
CountNums
[ "\n }\n" ]
csharp_109
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// We have an array 'arr' of N integers arr[...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = MoveOneBall(new List<int> {3,4,5,1,2}); var expected1 = true; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual...
MoveOneBall
[ "\n }\n" ]
csharp_110
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// In this problem, you will implement a fun...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Exchange(new List<int> {1,2,3,4},new List<int> {1,2,3,4}); var expected1 = "YES"; var result1 = compareLogic.Compare(actual1, expected1); i...
Exchange
[ "\n }\n" ]
csharp_111
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// Given a string representing a space separ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Histogram("a b b a"); var expected1 = new Dictionary<string, int> {{"a", 2},{"b", 2}}; var result1 = compareLogic.Compare(actual1, expected1); ...
Histogram
[ "\n }\n" ]
csharp_112
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// Task /// We are given two strings...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = ReverseDelete("abcde","ae"); var expected1 = new List<object> {"bcd",false}; var result1 = compareLogic.Compare(actual1, expected1); if (!r...
ReverseDelete
[ "\n }\n" ]
csharp_113
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// Given a list of strings, where each strin...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = OddCount(new List<string> {"1234567"}); var expected1 = new List<string> {"the number of odd elements 4n the str4ng 4 of the 4nput."}; var result1 = co...
OddCount
[ "\n }\n" ]
csharp_114
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// Given an array of integers n...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = MinSubArraySum(new List<int> {2,3,4,1,2,4}); var expected1 = 1; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqu...
MinSubArraySum
[ "\n }\n" ]
csharp_115
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// You are given a rectangular ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = MaxFill(new List<List<int>> {new List<int> {0,0,1,0},new List<int> {0,1,0,0},new List<int> {1,1,1,1}},1); var expected1 = 6; var result1 = compareLogic...
MaxFill
[ "\n }\n" ]
csharp_116
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// In this Kata, you have to so...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = SortArray(new List<int> {1,5,2,3,4}); var expected1 = new List<int> {1,2,4,3,5}; var result1 = compareLogic.Compare(actual1, expected1); if...
SortArray
[ "\n }\n" ]
csharp_117
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// Given a string s and a natural number n, ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = SelectWords("Mary had a little lamb",4); var expected1 = new List<string> {"little"}; var result1 = compareLogic.Compare(actual1, expected1); ...
SelectWords
[ "\n }\n" ]
csharp_118
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// You are given a word. Your task is to fin...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = GetClosestVowel("yogurt"); var expected1 = "u"; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new E...
GetClosestVowel
[ "\n }\n" ]
csharp_119
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// You are given a list of two ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = MatchParens(new List<string> {"()(",")"}); var expected1 = "Yes"; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreE...
MatchParens
[ "\n }\n" ]
csharp_120
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// Given an array arr of intege...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Maximum(new List<int> {-3,-4,5},3); var expected1 = new List<int> {-4,-3,5}; var result1 = compareLogic.Compare(actual1, expected1); if (!r...
Maximum
[ "\n }\n" ]
csharp_121
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// Given a non-empty list of integers, retur...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Solution(new List<int> {5,8,7,1}); var expected1 = 12; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {thro...
Solution
[ "\n }\n" ]
csharp_122
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// Given a non-empty array of i...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = AddElements(new List<int> {1,-2,-3,41,57,76,87,88,99},3); var expected1 = -4; var result1 = compareLogic.Compare(actual1, expected1); if (!...
AddElements
[ "\n }\n" ]
csharp_123
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// Given a positive integer n, ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = GetOddCollatz(14); var expected1 = new List<int> {1,5,7,11,13,17}; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.Are...
GetOddCollatz
[ "\n }\n" ]
csharp_124
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// You have to write a function which valida...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = ValidDate("03-11-2000"); var expected1 = true; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Ex...
ValidDate
[ "\n }\n" ]
csharp_125
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// Given a string of words, ret...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = SplitWords("Hello world!"); var expected1 = new List<object> {"Hello","world!"}; var result1 = compareLogic.Compare(actual1, expected1); if...
SplitWords
[ "\n }\n" ]
csharp_126
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// Given a list of numbers, ret...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = IsSorted(new List<int> {5}); var expected1 = true; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw ne...
IsSorted
[ "\n }\n" ]
csharp_127
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// You are given two intervals, /// ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Intersection(new List<int> {1,2},new List<int> {2,3}); var expected1 = "NO"; var result1 = compareLogic.Compare(actual1, expected1); if (!r...
Intersection
[ "\n }\n" ]
csharp_128
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// You are given an array arr o...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = ProdSigns(new List<int> {1,2,2,-4}); var expected1 = -9; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {th...
ProdSigns
[ "\n }\n" ]
csharp_129
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// Given a grid with N rows and...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = MinPath(new List<List<int>> {new List<int> {1,2,3},new List<int> {4,5,6},new List<int> {7,8,9}},3); var expected1 = new List<int> {1,2,1}; var result1 ...
MinPath
[ "\n }\n" ]
csharp_130
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// Everyone knows Fibonacci sequence, it was...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Tri(3); var expected1 = new List<object> {1,3,2.0,8.0}; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {thr...
Tri
[ "\n }\n" ]
csharp_131
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// Given a positive integer n, return the pr...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Digits(5); var expected1 = 5; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception("Exceptio...
Digits
[ "\n }\n" ]
csharp_132
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// Create a function that takes...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = IsNested("[[]]"); var expected1 = true; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception...
IsNested
[ "\n }\n" ]
csharp_133
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// You are given a list of numbers. ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = SumSquares(new List<object> {1,2,3}); var expected1 = 14; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {t...
SumSquares
[ "\n }\n" ]
csharp_134
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// Create a function that retur...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = CheckIfLastCharIsALetter("apple"); var expected1 = false; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {t...
CheckIfLastCharIsALetter
[ "\n }\n" ]
csharp_135
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// Create a function which returns the large...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = CanArrange(new List<int> {1,2,4,3,5}); var expected1 = 3; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {t...
CanArrange
[ "\n }\n" ]
csharp_136
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// Create a function that retur...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = LargestSmallestIntegers(new List<int> {2,4,1,3,5,7}); var expected1 = new List<object> {null,1}; var result1 = compareLogic.Compare(actual1, expected1)...
LargestSmallestIntegers
[ "\n }\n" ]
csharp_137
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// Create a function that takes...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = CompareOne(1,2); var expected1 = 2; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception("Ex...
CompareOne
[ "\n }\n" ]
csharp_138
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// Evaluate whether the given number n can b...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = IsEqualToSumEven(4); var expected1 = false; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Excep...
IsEqualToSumEven
[ "\n }\n" ]
csharp_139
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// The Brazilian factorial is defined as: ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = SpecialFactorial(4); var expected1 = 288; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Excepti...
SpecialFactorial
[ "\n }\n" ]
csharp_140
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// Given a string text, replace...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = FixSpaces("Example"); var expected1 = "Example"; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new ...
FixSpaces
[ "\n }\n" ]
csharp_141
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// Create a function which takes a string re...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = FileNameCheck("example.txt"); var expected1 = "Yes"; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw ...
FileNameCheck
[ "\n }\n" ]
csharp_142
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// </summary> public st...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = SumSquares(new List<int> {1,2,3}); var expected1 = 6; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw...
SumSquares
[ "\n }\n" ]
csharp_143
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// You are given a string repre...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = WordsInSentence("This is a test"); var expected1 = "is"; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {th...
WordsInSentence
[ "\n }\n" ]
csharp_144
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// Your task is to implement a function that...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Simplify("1/5","5/1"); var expected1 = true; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exce...
Simplify
[ "\n }\n" ]
csharp_145
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// Write a function which sorts...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = OrderByPoints(new List<int> {1,11,-1,-11,-12}); var expected1 = new List<int> {-1,-11,1,-12,11}; var result1 = compareLogic.Compare(actual1, expected1)...
OrderByPoints
[ "\n }\n" ]
csharp_146
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// Write a function that takes an array of n...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = SpecialFilter(new List<int> {5,-2,1,-5}); var expected1 = 0; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual)...
SpecialFilter
[ "\n }\n" ]
csharp_147
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// You are given a positive int...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = GetMaxTriples(5); var expected1 = 1; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception("E...
GetMaxTriples
[ "\n }\n" ]
csharp_148
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// There are eight planets in o...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Bf("Jupiter","Neptune"); var expected1 = new List<string> {"Saturn","Uranus"}; var result1 = compareLogic.Compare(actual1, expected1); if (...
Bf
[ "\n }\n" ]
csharp_149
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// Write a function that accepts a list of s...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = SortedListSum(new List<string> {"aa","a","aaa"}); var expected1 = new List<string> {"aa"}; var result1 = compareLogic.Compare(actual1, expected1); ...
SortedListSum
[ "\n }\n" ]
csharp_150
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// A simple program which should return the ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = XOrY(7,34,12); var expected1 = 34; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception("Exc...
XOrY
[ "\n }\n" ]
csharp_151
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// Given a list of numbers, ret...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = DoubleTheDifference(new List<object> {}); var expected1 = 0; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual)...
DoubleTheDifference
[ "\n }\n" ]
csharp_152
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// I think we all remember that feeling when...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Compare(new List<int> {1,2,3,4,5,1},new List<int> {1,2,3,4,2,-2}); var expected1 = new List<int> {0,0,0,0,3,3}; var result1 = compareLogic.Compare(actu...
Compare
[ "\n }\n" ]
csharp_153
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// You will be given the name of a class (a ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = StrongestExtension("Watashi",new List<string> {"tEN","niNE","eIGHt8OKe"}); var expected1 = "Watashi.eIGHt8OKe"; var result1 = compareLogic.Compare(actu...
StrongestExtension
[ "\n }\n" ]
csharp_154
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// You are given 2 words. You need to return...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = CycpatternCheck("xyzw","xyw"); var expected1 = false; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw...
CycpatternCheck
[ "\n }\n" ]
csharp_155
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// Given an integer. return a tuple that has...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = EvenOddCount(7); var expected1 = new List<int> {0,1}; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw...
EvenOddCount
[ "\n }\n" ]
csharp_156
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// Given a positive integer, ob...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = IntToMiniRoman(19); var expected1 = "xix"; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Except...
IntToMiniRoman
[ "\n }\n" ]
csharp_157
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// Given the lengths of the thr...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = RightAngleTriangle(3,4,5); var expected1 = true; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new ...
RightAngleTriangle
[ "\n }\n" ]
csharp_158
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// Write a function that accepts a list of s...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = FindMax(new List<string> {"name","of","string"}); var expected1 = "string"; var result1 = compareLogic.Compare(actual1, expected1); if (!re...
FindMax
[ "\n }\n" ]
csharp_159
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// You're a hungry rabbit, and ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Eat(5,6,10); var expected1 = new List<int> {11,4}; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw ne...
Eat
[ "\n }\n" ]
csharp_160
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// Given two lists operator, an...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = DoAlgebra(new List<string> {"**","*","+"},new List<int> {2,3,4,5}); var expected1 = 37; var result1 = compareLogic.Compare(actual1, expected1); ...
DoAlgebra
[ "\n }\n" ]
csharp_161
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// You are given a string s. /// if ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Solve("AsDf"); var expected1 = "aSdF"; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception(...
Solve
[ "\n }\n" ]
csharp_162
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// Given a string 'text', retur...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = StringToMd5("Hello world"); var expected1 = "3e25960a79dbc69b674cd4ec67a72c62"; var result1 = compareLogic.Compare(actual1, expected1); if ...
StringToMd5
[ "\n }\n" ]
csharp_163
csharp
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using KellermanSoftware.CompareNetObjects; namespace Solution { public class Program { /// <summary> /// You're an expert C# programmer /// /// Given two positive integers ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = GenerateIntegers(2,10); var expected1 = new List<int> {2,4,6,8}; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEq...
GenerateIntegers
[ "\n }\n" ]