Public viewer

The journey of every round

Every round-trip in the corpus is public. Open one to see the prompt, the zero-point index, the baseline response, the enhanced response, and how each grader read the difference. Leave a comment if a grader's reading lands — or doesn't.

#89311 May 26

Use Memory<byte> and ArrayPool<byte>.Shared to read a file in 4KB chunks without re-allocating buffers per iteration. No async.

V1WorseV2ΔLcsharp
#89211 May 26

Convert a Guid to a base64 url-safe string (no padding, '+' → '-', '/' → '_') and back. Round-trip test.

V1BetterV2ΔLcsharp
#89111 May 26

Use a yield return iterator method to lazily enumerate Fibonacci numbers up to a given limit. Show the caller using foreach with a take of 10.

V1BetterV2ΔLcsharp
#89011 May 26

Demonstrate await on Task.Delay inside an async method that returns Task<int>. Show calling it twice in parallel via Task.WhenAll.

V1WorseV2ΔLcsharp
#88911 May 26

Write a custom equality comparer (IEqualityComparer<Person>) that treats two Person records as equal when Email lowercased matches. Include GetHashCode.

V1BetterV2ΔLcsharp
#88811 May 26

Implement nullable reference type annotations on a 'Person' class with FirstName (non-null), MiddleName (nullable), LastName (non-null). Show a constructor that enforces non-nullness.

V1BetterV2ΔLcsharp
#88711 May 26

Show typeof(T) vs T.GetType() inside a generic method. Demonstrate typeof(T) is the static declared type and GetType() is the runtime type for boxed values.

V1BetterV2ΔLcsharp
#88611 May 26

Use Random.Shared to pick a random element from a List<T> in a generic Pick<T>(List<T>) extension method.

V1BetterV2ΔLcsharp
#88511 May 26

Use DateTime.UtcNow plus a TimeSpan to compute a deadline 7 business days from now, skipping Saturday and Sunday.

V1WorseV2ΔLcsharp
#88411 May 26

Write a Regex that matches IPv4 addresses in the form '1.2.3.4' (each octet 0–255). Use Regex.Match on a sample string.

V1WorseV2ΔLcsharp
#88311 May 26

Define an interface IShape with one method Area(). Implement Circle and Rectangle records. Show a List<IShape> being summed via LINQ Sum.

V1SameV2ΔLcsharp
#88211 May 26

Write an extension method on IEnumerable<T> called 'Chunk(int size)' that yields IEnumerable<T> chunks of the given size. Do not call the built-in Enumerable.Chunk.

V1SameV2ΔLcsharp
#88111 May 26

Use StringBuilder to format a CSV row from an array of object?, treating null as empty. Escape any commas in values by wrapping in quotes.

V1WorseV2ΔLcsharp
#88011 May 26

Implement IComparable<T> on a 'SemVer' struct (Major, Minor, Patch). Show sorting a List<SemVer>.

V1SameV2ΔLcsharp
#87911 May 26

Write a ReadOnlySpan<byte>-based UTF-8 BOM check: return true if the span starts with the bytes 0xEF 0xBB 0xBF.

V1WorseV2ΔLcsharp
#87811 May 26

Convert a List<string> to a Dictionary<string,int> mapping each string to its length, using LINQ's ToDictionary.

V1BetterV2ΔLcsharp
#87711 May 26

Demonstrate pattern matching against a tuple (int x, int y) to classify a point as 'Origin', 'OnXAxis', 'OnYAxis', or 'Inside' the unit square.

V1BetterV2ΔLcsharp
#87611 May 26

Write a generic method 'MaxBy<T,TKey>(IEnumerable<T>, Func<T,TKey>) where TKey:IComparable<TKey>' that returns the element with the maximum key.

V1BetterV2ΔLcsharp
#87511 May 26

Define an enum with [Flags] for ANSI text styles (Bold=1, Italic=2, Underline=4, Strike=8). Show combining values and testing with HasFlag.

V1BetterV2ΔLcsharp
#87411 May 26

Write a using-block over a StreamReader that reads each line and counts occurrences of the word 'foo'. No async.

V1BetterV2ΔLcsharp
#87311 May 26

Use a Span<char> to parse an integer from a string slice without allocating. Compare to int.Parse(string) qualitatively.

V1BetterV2ΔLcsharp
#87211 May 26

Write a switch expression that maps an int status code (200, 301, 404, 500) to a string label. Use the 'when' clause for the 5xx range.

V1WorseV2ΔLcsharp
#87111 May 26

Given a List<int>, return a new list containing only the even numbers, each squared, using LINQ method syntax (Where + Select). One line.

V1SameV2ΔLcsharp
#87011 May 26

Implement a record type 'Money' with Amount (decimal) and Currency (string). Override ToString to print '€100.00 EUR'-style and show value equality with two instances.

V1BetterV2ΔLcsharp