The code within this repository are all the solutions I have created to successfully pass LeetCode challenges. Each directory will be for the challenges themselves, and the files within will be the solutions for the different languages I've succeeded with.
I will also post statistics below of my solutions.
Challenge | Runtime | Percentile | Language | Difficulty |
---|---|---|---|---|
Two Sum | 4ms | 100.00% | C++ | Easy |
Two Sum | 36ms | 99.31% | Ruby | Easy |
Add Two Numbers | 28ms | 100.00% | C++ | Medium |
Add Two Numbers | 76ms | 96.98% | Ruby | Medium |
Longest Substring Without Repeating Characters | 16ms | 99.88% | C++ | Medium |
Longest Substring Without Repeating Characters | 96ms | 71.88% | Ruby | Medium |
Median of Two Sorted Arrays | 80ms | 91.58% | Ruby | Hard |
Jewels and Stones | 4ms | 100.00% | C++ | Easy |
Unique Morse Code Words | 4ms | 99.44% | C++ | Easy |
Hamming Distance | 0ms | 100.00% | C++ | Easy |
Flipping an Image | 8ms | 100.00% | C++ | Easy |
Judge Route Circle | 12ms | 97.96% | C++ | Easy |
Peak Index in a Mountain Array | 8ms | 98.98% | C++ | Easy |
Merge Two Binary Trees | 28ms | 99.45% | C++ | Easy |
Max Increase to Keep City Skyline | 4ms | 100.00% | C++ | Medium |