bbstilson / leetcode

Collection of my solutions to LeetCode problems.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Leetcode

Collection of my solutions to LeetCode problems.

Running

All solutions are written in Scala and are run as scripts using Ammonite.

amm difficulty/some_problem/solution.sc

For example:

amm medium/valid_sudoku/solution.sc
true
false

To create a new problem template

amm new_problem.sc --difficulty easy|medium|hard|other --problem "Problem Name"

For example:

amm new_problem.sc --difficulty medium --problem "Some Medium Thing"

Table of Contents

Easy

Two Sum

Longest Common Prefix

Merge Two Sorted Lists

Palindrome Number

reverse Integer

Medium

ZigZag Conversion

Add Two Numbers

Course Schedule

Valid Sudoku

Combination Sum

Container With Most Water

Open the Lock

Hard

Other

Treasure Island

About

Collection of my solutions to LeetCode problems.


Languages

Language:Scala 100.0%