Dataset Viewer
Auto-converted to Parquet Duplicate
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
sequencelengths
1
1
csharp_0
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 /// Check if in given list of numbers, are an...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = HasCloseElements(new List<double> {1.0,2.0,3.9,4.0,5.0,2.2},0.3); var expected1 = true; var result1 = compareLogic.Compare(actual1, expected1); ...
HasCloseElements
[ "\n }\n" ]
csharp_1
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 /// Input to this function is a string contai...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = SeparateParenGroups("(()()) ((())) () ((())()())"); var expected1 = new List<string> {"(()())","((()))","()","((())()())"}; var result1 = compareLogic....
SeparateParenGroups
[ "\n }\n" ]
csharp_2
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 floating point number, i...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = TruncateNumber(3.5); var expected1 = 0.5; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Excepti...
TruncateNumber
[ "\n }\n" ]
csharp_3
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 given a list of deposit and withdr...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = BelowZero(new List<int> {}); var expected1 = false; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw n...
BelowZero
[ "\n }\n" ]
csharp_4
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 /// For a given list of input numbers, calcul...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = MeanAbsoluteDeviation(new List<double> {1.0,2.0,3.0}); var expected1 = 0.6666666666666666; var result1 = compareLogic.Compare(actual1, expected1); ...
MeanAbsoluteDeviation
[ "\n }\n" ]
csharp_5
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 /// Insert a number 'delimeter' between every...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Intersperse(new List<int> {},7); var expected1 = new List<int> {}; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.Are...
Intersperse
[ "\n }\n" ]
csharp_6
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 /// Input to this function is a string repres...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = ParseNestedParens("(()()) ((())) () ((())()())"); var expected1 = new List<int> {2,3,1,3}; var result1 = compareLogic.Compare(actual1, expected1); ...
ParseNestedParens
[ "\n }\n" ]
csharp_7
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 /// Filter an input list of strings only for ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = FilterBySubstring(new List<string> {},"john"); var expected1 = new List<string> {}; var result1 = compareLogic.Compare(actual1, expected1); ...
FilterBySubstring
[ "\n }\n" ]
csharp_8
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 /// For a given list of integers, return a tu...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = SumProduct(new List<int> {}); var expected1 = new List<int> {0,1}; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.Are...
SumProduct
[ "\n }\n" ]
csharp_9
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 /// From a given list of integers, generate a...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = RollingMax(new List<int> {}); var expected1 = new List<int> {}; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqu...
RollingMax
[ "\n }\n" ]
csharp_10
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 /// Find the shortest palindrome that begins ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = MakePalindrome(""); var expected1 = ""; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception...
MakePalindrome
[ "\n }\n" ]
csharp_11
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 /// Input are two strings a and b consisting ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = StringXor("111000","101010"); var expected1 = "010010"; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {thr...
StringXor
[ "\n }\n" ]
csharp_12
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 /// Out of list of strings, return the Longes...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Longest(new List<string> {}); var expected1 = null; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw n...
Longest
[ "\n }\n" ]
csharp_13
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 /// Return a greatest common divisor of two i...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = GreatestCommonDivisor(3,7); var expected1 = 1; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Ex...
GreatestCommonDivisor
[ "\n }\n" ]
csharp_14
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 /// Return list of all prefixes from shortest...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = AllPrefixes(""); var expected1 = new List<string> {}; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw...
AllPrefixes
[ "\n }\n" ]
csharp_15
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 /// Return a string containing space-delimite...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = StringSequence(0); var expected1 = "0"; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception...
StringSequence
[ "\n }\n" ]
csharp_16
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, find out how many distinc...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = CountDistinctCharacters(""); var expected1 = 0; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new E...
CountDistinctCharacters
[ "\n }\n" ]
csharp_17
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 /// Input to this function is a string repres...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = ParseMusic(""); var expected1 = new List<int> {}; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new...
ParseMusic
[ "\n }\n" ]
csharp_18
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 /// Find how many times a given substring can...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = HowManyTimes("","x"); var expected1 = 0; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exceptio...
HowManyTimes
[ "\n }\n" ]
csharp_19
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 /// Input is a space-delimited string of numb...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = SortNumbers(""); var expected1 = ""; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception("E...
SortNumbers
[ "\n }\n" ]
csharp_20
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 /// From a supplied list of numbers (of lengt...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = FindClosestElements(new List<double> {1.0,2.0,3.9,4.0,5.0,2.2}); var expected1 = new List<double> {3.9,4.0}; var result1 = compareLogic.Compare(actual1...
FindClosestElements
[ "\n }\n" ]
csharp_21
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 list of numbers (of at least two el...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = RescaleToUnit(new List<double> {2.0,49.9}); var expected1 = new List<double> {0.0,1.0}; var result1 = compareLogic.Compare(actual1, expected1); ...
RescaleToUnit
[ "\n }\n" ]
csharp_22
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 /// Filter given list of any python values on...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = FilterIntegers(new List<object> {}); var expected1 = new List<int> {}; var result1 = compareLogic.Compare(actual1, expected1); if (!result1...
FilterIntegers
[ "\n }\n" ]
csharp_23
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 /// Return length of given string ///...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Strlen(""); var expected1 = 0; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception("Excepti...
Strlen
[ "\n }\n" ]
csharp_24
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 /// For a given number n, find the largest nu...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = LargestDivisor(3); var expected1 = 1; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception("...
LargestDivisor
[ "\n }\n" ]
csharp_25
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 /// Return list of prime factors of given int...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Factorize(2); var expected1 = new List<int> {2}; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new ...
Factorize
[ "\n }\n" ]
csharp_26
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 /// From a list of integers, remove all eleme...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = RemoveDuplicates(new List<int> {}); var expected1 = new List<int> {}; var result1 = compareLogic.Compare(actual1, expected1); if (!result1....
RemoveDuplicates
[ "\n }\n" ]
csharp_27
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 /// For a given string, flip lowercase charac...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = FlipCase(""); var expected1 = ""; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception("Exce...
FlipCase
[ "\n }\n" ]
csharp_28
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 /// Concatenate list of strings into a single...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Concatenate(new List<string> {}); var expected1 = ""; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw...
Concatenate
[ "\n }\n" ]
csharp_29
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 /// Filter an input list of strings only for ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = FilterByPrefix(new List<string> {},"john"); var expected1 = new List<string> {}; var result1 = compareLogic.Compare(actual1, expected1); if...
FilterByPrefix
[ "\n }\n" ]
csharp_30
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 /// Return only positive numbers in the list....
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = GetPositive(new List<int> {-1,-2,4,5,6}); var expected1 = new List<int> {4,5,6}; var result1 = compareLogic.Compare(actual1, expected1); if...
GetPositive
[ "\n }\n" ]
csharp_31
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 /// Return true if a given number is prime, a...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = IsPrime(6); var expected1 = false; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception("Exc...
IsPrime
[ "\n }\n" ]
csharp_33
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 /// This function takes a list l and returns ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = SortThird(new List<int> {1,2,3}); var expected1 = new List<int> {1,2,3}; var result1 = compareLogic.Compare(actual1, expected1); if (!resul...
SortThird
[ "\n }\n" ]
csharp_34
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 /// Return sorted Unique elements in a list ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Unique(new List<int> {5,3,5,2,3,3,9,0,123}); var expected1 = new List<int> {0,2,3,5,9,123}; var result1 = compareLogic.Compare(actual1, expected1); ...
Unique
[ "\n }\n" ]
csharp_35
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 /// Return maximum element in the list. ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = MaxElement(new List<int> {1,2,3}); var expected1 = 3; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw...
MaxElement
[ "\n }\n" ]
csharp_36
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 /// Return the number of times the digit 7 ap...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = FizzBuzz(50); var expected1 = 0; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception("Excep...
FizzBuzz
[ "\n }\n" ]
csharp_37
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 /// This function takes a list l and returns ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = SortEven(new List<int> {1,2,3}); var expected1 = new List<int> {1,2,3}; var result1 = compareLogic.Compare(actual1, expected1); if (!result...
SortEven
[ "\n }\n" ]
csharp_39
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 /// /// PrimeFib returns n-th number...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = PrimeFib(1); var expected1 = 2; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception("Except...
PrimeFib
[ "\n }\n" ]
csharp_40
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 /// /// TriplesSumToZero takes a lis...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = TriplesSumToZero(new List<int> {1,3,5,0}); var expected1 = false; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreE...
TriplesSumToZero
[ "\n }\n" ]
csharp_41
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 /// /// Imagine a road that's a perf...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = CarRaceCollision(2); var expected1 = 4; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception...
CarRaceCollision
[ "\n }\n" ]
csharp_42
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 /// Return list with elements incremented by ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = IncrList(new List<int> {}); var expected1 = new List<int> {}; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual...
IncrList
[ "\n }\n" ]
csharp_43
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 /// /// PairsSumToZero takes a list ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = PairsSumToZero(new List<int> {1,3,5,0}); var expected1 = false; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqu...
PairsSumToZero
[ "\n }\n" ]
csharp_44
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 /// Change numerical base of input number x t...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = ChangeBase(8,3); var expected1 = "22"; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception(...
ChangeBase
[ "\n }\n" ]
csharp_45
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 length of a side and high return ar...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = TriangleArea(5,3); var expected1 = 7.5; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception...
TriangleArea
[ "\n }\n" ]
csharp_46
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 Fib4 number sequence is a sequence si...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Fib4(5); var expected1 = 4; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception("Exception ...
Fib4
[ "\n }\n" ]
csharp_47
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 /// Return Median of elements in the list l. ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Median(new List<int> {3,1,2,4,5}); var expected1 = 3; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw...
Median
[ "\n }\n" ]
csharp_48
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 /// /// Checks if given string is a ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = IsPalindrome(""); var expected1 = true; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception...
IsPalindrome
[ "\n }\n" ]
csharp_49
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 /// Return 2^n modulo p (be aware of numerics...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Modp(3,5); var expected1 = 3; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception("Exceptio...
Modp
[ "\n }\n" ]
csharp_51
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 /// /// RemoveVowels is a function t...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = RemoveVowels(""); var expected1 = ""; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception("...
RemoveVowels
[ "\n }\n" ]
csharp_52
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 /// Return True if all numbers in the list l ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = BelowThreshold(new List<int> {1,2,4,10},100); var expected1 = true; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.Ar...
BelowThreshold
[ "\n }\n" ]
csharp_53
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 /// Add two numbers x and y /// >>> A...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Add(0,1); var expected1 = 1; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception("Exception...
Add
[ "\n }\n" ]
csharp_54
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 /// /// Check if two words have the ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = SameChars("eabcdzzzz","dddzzzzzzzddeddabc"); var expected1 = true; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.Are...
SameChars
[ "\n }\n" ]
csharp_55
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 /// Return n-th Fibonacci number. ///...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Fib(10); var expected1 = 55; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception("Exception...
Fib
[ "\n }\n" ]
csharp_56
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 /// brackets is a string of "<" and ">". ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = CorrectBracketing("<>"); var expected1 = true; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Ex...
CorrectBracketing
[ "\n }\n" ]
csharp_57
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 /// Return True is list elements are Monotoni...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Monotonic(new List<int> {1,2,4,10}); var expected1 = true; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {...
Monotonic
[ "\n }\n" ]
csharp_58
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 /// Return sorted unique Common elements for ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Common(new List<int> {1,4,3,34,653,2,5},new List<int> {5,7,1,5,9,653,121}); var expected1 = new List<int> {1,5,653}; var result1 = compareLogic.Compare...
Common
[ "\n }\n" ]
csharp_59
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 /// Return the largest prime factor of n. Ass...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = LargestPrimeFactor(15); var expected1 = 5; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Except...
LargestPrimeFactor
[ "\n }\n" ]
csharp_60
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 /// SumToN is a function that sums numbers fr...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = SumToN(1); var expected1 = 1; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception("Exceptio...
SumToN
[ "\n }\n" ]
csharp_61
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 /// brackets is a string of "(" and ")". ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = CorrectBracketing("()"); var expected1 = true; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Ex...
CorrectBracketing
[ "\n }\n" ]
csharp_62
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 /// xs represent coefficients of a polynomial...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Derivative(new List<int> {3,1,2,4,5}); var expected1 = new List<int> {1,4,12,20}; var result1 = compareLogic.Compare(actual1, expected1); i...
Derivative
[ "\n }\n" ]
csharp_63
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 FibFib number sequence is a sequence ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Fibfib(2); var expected1 = 1; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception("Exceptio...
Fibfib
[ "\n }\n" ]
csharp_64
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 VowelsCount which takes ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = VowelsCount("abcde"); var expected1 = 2; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exceptio...
VowelsCount
[ "\n }\n" ]
csharp_65
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 /// Circular shift the digits of the integer ...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = CircularShift(100,2); var expected1 = "001"; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exce...
CircularShift
[ "\n }\n" ]
csharp_66
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 /// Write a function that ta...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = DigitSum(""); var expected1 = 0; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.AreEqual) {throw new Exception("Excep...
DigitSum
[ "\n }\n" ]
csharp_67
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 task, you will be gi...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = FruitDistribution("5 apples and 6 oranges",19); var expected1 = 8; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.Are...
FruitDistribution
[ "\n }\n" ]
csharp_68
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 representing...
public static void Main(string[] args) { CompareLogic compareLogic = new CompareLogic(); var actual1 = Pluck(new List<int> {4,2,3}); var expected1 = new List<int> {2,1}; var result1 = compareLogic.Compare(actual1, expected1); if (!result1.Are...
Pluck
[ "\n }\n" ]
End of preview. Expand in Data Studio

This dataset contains a viewer-friendly version of the dataset at mxeval/multi-humaneval with language-specific stop tokens added in. It is made available separately for the convenience of the vllm-code-harness package.

Downloads last month
30