73 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global 73 --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local 73 --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=73&version=1.0.0
                    
nuke :add-package 73 --version 1.0.0
                    

73 CLI

The interactive command-line companion to practice, test, and master the 73 most useful LeetCode problems in C# with zero boilerplate and immediate feedback.


Features

  • Zero Boilerplate: Write only public class Solution { ... } (the exact LeetCode snippet). No .csproj, no Program.cs, no Main().
  • In-Memory Roslyn Execution (< 100 ms): Code is compiled dynamically in memory using Microsoft.CodeAnalysis.CSharp for instant feedback.
  • Rich Terminal UI: Clear panels, progress indicators, and comparative diff tables powered by Spectre.Console.
  • Smart Problem Resolver: Automatically detects which problem you are testing by directory location, fuzzy filename (two.cs), or AST method signature inspection (TwoSum(...)).
  • 100% Self-Contained: All 76 problem test suites, templates, and problem notes are embedded. Works in any directory.

Installation

Install globally as a .NET Tool:

dotnet tool install -g 73

To update to the latest version:

dotnet tool update -g 73

Quickstart

1. Generate a boilerplate solution

73 new two-sum

Creates Two-Sum.cs with the exact LeetCode method signature:

using System;
using System.Collections.Generic;

// Problem: #0001 - Two Sum [Easy]
public class Solution
{
    public int[] TwoSum(int[] nums, int target)
    {
        throw new NotImplementedException();
    }
}

2. Solve and test immediately

Run 73 pointing to your file:

73 Two-Sum.cs

Or run tests directly by problem name:

73 test Two-Sum

Commands Reference

Command Description Example
73 <file.cs> Test your solution file (auto-detects problem by path, name, or AST method signature). 73 two.cs
73 test [problem] Run tests for a problem by name, slug, or number. 73 test Two-Sum
73 new <problem> Create a clean boilerplate file ready to code. 73 new two-sum
73 list [category] List all 76 problems categorized by topic with difficulty and method names. 73 list trees
73 info <problem> View problem description, examples, and constraints directly in terminal. 73 info two-sum

License

This project is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.0.3 53 9/18/2026
1.0.1 49 9/18/2026
1.0.0 54 9/18/2026