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_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"
] |
csharp_69 | 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 non-empty li... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = Search(new List<int> {5,5,5,5,1});
var expected1 = 1;
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw... | Search | [
"\n }\n"
] |
csharp_70 | 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 integers, retu... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = StrangeSortList(new List<int> {1,2,3,4});
var expected1 = new List<int> {1,4,2,3};
var result1 = compareLogic.Compare(actual1, expected1);
... | StrangeSortList | [
"\n }\n"
] |
csharp_71 | 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 = TriangleArea(3,4,5);
var expected1 = 6.0;
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw new Excepti... | TriangleArea | [
"\n }\n"
] |
csharp_72 | 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 return... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = WillItFly(new List<int> {3,2,3},9);
var expected1 = true;
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {t... | WillItFly | [
"\n }\n"
] |
csharp_73 | 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 = SmallestChange(new List<int> {1,2,3,5,4,7,9,6});
var expected1 = 4;
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.Ar... | SmallestChange | [
"\n }\n"
] |
csharp_74 | 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 accept... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = TotalMatch(new List<string> {},new List<string> {});
var expected1 = new List<string> {};
var result1 = compareLogic.Compare(actual1, expected1);
... | TotalMatch | [
"\n }\n"
] |
csharp_75 | 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 returns true if the... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = IsMultiplyPrime(5);
var expected1 = false;
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw new Except... | IsMultiplyPrime | [
"\n }\n"
] |
csharp_76 | 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 write a function that ret... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = IsSimplePower(16,2);
var expected1 = true;
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw new Except... | IsSimplePower | [
"\n }\n"
] |
csharp_77 | 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 ... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = Iscube(1);
var expected1 = true;
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw new Exception("Excep... | Iscube | [
"\n }\n"
] |
csharp_78 | 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 been tasked to write a function ... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = HexKey("AB");
var expected1 = 1;
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw new Exception("Excep... | HexKey | [
"\n }\n"
] |
csharp_79 | 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 a number in decimal for... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = DecimalToBinary(0);
var expected1 = "db0db";
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw new Exce... | DecimalToBinary | [
"\n }\n"
] |
csharp_80 | 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.
/// You... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = IsHappy("a");
var expected1 = false;
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw new Exception("E... | IsHappy | [
"\n }\n"
] |
csharp_81 | 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
/// It is the last week of the semester and t... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = NumericalLetterGrade(new List<object> {4.0,3,1.7,2,3.5});
var expected1 = new List<string> {"A+","B","C-","C","A-"};
var result1 = compareLogic.Compare... | NumericalLetterGrade | [
"\n }\n"
] |
csharp_82 | 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 a string and ... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = PrimeLength("Hello");
var expected1 = true;
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw new Excep... | PrimeLength | [
"\n }\n"
] |
csharp_83 | 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 = StartsOneEnds(1);
var expected1 = 1;
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw new Exception("E... | StartsOneEnds | [
"\n }\n"
] |
csharp_84 | 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 to... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = Solve(1000);
var expected1 = "1";
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw new Exception("Exce... | Solve | [
"\n }\n"
] |
csharp_85 | 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 lst. A... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = Add(new List<int> {4,88});
var expected1 = 88;
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw new Ex... | Add | [
"\n }\n"
] |
csharp_86 | 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 ... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = AntiShuffle("Hi");
var expected1 = "Hi";
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw new Exceptio... | AntiShuffle | [
"\n }\n"
] |
csharp_87 | 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 2 dimensiona... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = GetRow(new List<List<int>> {new List<int> {1,2,3,4,5,6},new List<int> {1,2,3,4,1,6},new List<int> {1,2,3,4,5,1}},1);
var expected1 = new List<List<int>> {new List<... | GetRow | [
"\n }\n"
] |
csharp_88 | 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 non-negati... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = SortArray(new List<int> {});
var expected1 = new List<int> {};
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqua... | SortArray | [
"\n }\n"
] |
csharp_89 | 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 Encrypt that takes a st... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = Encrypt("hi");
var expected1 = "lm";
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw new Exception("E... | Encrypt | [
"\n }\n"
] |
csharp_90 | 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 inte... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = NextSmallest(new List<int> {1,2,3,4,5});
var expected1 = 2;
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) ... | NextSmallest | [
"\n }\n"
] |
csharp_91 | 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'll be given a string of ... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = IsBored("Hello world");
var expected1 = 0;
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw new Except... | IsBored | [
"\n }\n"
] |
csharp_92 | 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 = AnyInt(2,3,1);
var expected1 = true;
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw new Exception("E... | AnyInt | [
"\n }\n"
] |
csharp_93 | 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 ... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = Encode("TEST");
var expected1 = "tgst";
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw new Exception... | Encode | [
"\n }\n"
] |
csharp_94 | 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 integers.
... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = Skjkasdkd(new List<int> {0,3,2,1,3,5,7,4,5,5,5,2,181,32,4,32,3,2,32,324,4,3});
var expected1 = 10;
var result1 = compareLogic.Compare(actual1, expected... | Skjkasdkd | [
"\n }\n"
] |
csharp_95 | 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 dictionary, return T... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = CheckDictCase(new Dictionary<object, string> {{"p", "pineapple"},{"b", "banana"}});
var expected1 = true;
var result1 = compareLogic.Compare(actual1, e... | CheckDictCase | [
"\n }\n"
] |
csharp_96 | 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 a function that takes an non-ne... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = CountUpTo(5);
var expected1 = new List<int> {2,3};
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw ne... | CountUpTo | [
"\n }\n"
] |
csharp_97 | 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
/// Complete the function that takes two inte... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = Multiply(148,412);
var expected1 = 16;
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw new Exception(... | Multiply | [
"\n }\n"
] |
csharp_98 | 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, count the ... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = CountUpper("aBCdEf");
var expected1 = 1;
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw new Exceptio... | CountUpper | [
"\n }\n"
] |
csharp_99 | 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 = ClosestInteger("10");
var expected1 = 10;
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw new Excepti... | ClosestInteger | [
"\n }\n"
] |
csharp_100 | 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 = MakeAPile(3);
var expected1 = new List<int> {3,5,7};
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw ... | MakeAPile | [
"\n }\n"
] |
csharp_101 | 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 a string o... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = WordsString("Hi, my name is John");
var expected1 = new List<string> {"Hi","my","name","is","John"};
var result1 = compareLogic.Compare(actual1, expect... | WordsString | [
"\n }\n"
] |
csharp_102 | 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 two positive numbers ... |
public static void Main(string[] args)
{
CompareLogic compareLogic = new CompareLogic();
var actual1 = ChooseNum(12,15);
var expected1 = 14;
var result1 = compareLogic.Compare(actual1, expected1);
if (!result1.AreEqual) {throw new Exception("... | ChooseNum | [
"\n }\n"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.