leetcode

Solution to some Leetcode problems written in C++
git clone git://git.dimitrijedobrota.com/leetcode.git
Log | Files | Refs | README | LICENSE

commit fee3fdd4cc99a061f15146b6f8fda1e958d5cba8
parent ef7cebfb49bc6b4d1a86f14025c9e270a64530b3
Author: Dimitrije Dobrota <mail@dimitrijedobrota.com>
Date:   Wed, 25 Jan 2023 21:54:38 +0100

Radix sort

There is probably a better way, but his one covers all of the edge cases

Diffstat:
AProblems/0164.cpp | 4++++
AProblems/0912.cpp | 4++++
AProblems/2343.cpp | 4++++
MREADME.md | 3+++
4 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/Problems/0164.cpp b/Problems/0164.cpp @@ -0,0 +1,4 @@ +Formating: Problems/0164.cpp +Formating: Problems/0164.cpp +Formating: Problems/0912.cpp +Formating: Problems/2343.cpp diff --git a/Problems/0912.cpp b/Problems/0912.cpp @@ -0,0 +1,4 @@ +Formating: Problems/0164.cpp +Formating: Problems/0164.cpp +Formating: Problems/0912.cpp +Formating: Problems/2343.cpp diff --git a/Problems/2343.cpp b/Problems/2343.cpp @@ -0,0 +1,4 @@ +Formating: Problems/0164.cpp +Formating: Problems/0164.cpp +Formating: Problems/0912.cpp +Formating: Problems/2343.cpp diff --git a/README.md b/README.md @@ -101,6 +101,7 @@ for solving problems. | 0151 | Medium | [Reverse Words in a String](Problems/0151.cpp) | | 0155 | Medium | [Min Stack](Problems/0155.cpp) | | 0160 | Easy | [Intersection of Two Linked Lists](Problems/0160.cpp) | +| 0164 | Hard | [Maximum Gap](Problems/0164.cpp) | | 0167 | Medium | [Two Sum II - Input Array Is Sorted](Problems/0167.cpp) | | 0173 | Medium | [Binary Search Tree Iterator](Problems/0173.cpp) | | 0189 | Medium | [Rotate Array](Problems/0189.cpp) | @@ -229,6 +230,7 @@ for solving problems. | 0901 | Medium | [Online Stock Span](Problems/0901.cpp) | | 0905 | Easy | [Sort Array By Parity](Problems/0905.cpp) | | 0909 | Medium | [Snakes and Ladders](Problems/0909.cpp) | +| 0912 | Medium | [Sort an Array](Problems/0912.cpp) | | 0918 | Medium | [Maximum Sum Circular Subarray](Problems/0918.cpp) | | 0926 | Medium | [Flip String to Monotone Increasing](Problems/0926.cpp) | | 0931 | Medium | [Minimum Falling Path Sum](Problems/0931.cpp) | @@ -333,6 +335,7 @@ for solving problems. | 2316 | Medium | [Count Unreachable Pairs of Nodes in an Undirected Graph](Problems/2316.cpp) | | 2326 | Medium | [Spiral Matrix IV](Problems/2326.cpp) | | 2331 | Easy | [Evaluate Boolean Binary Tree](Problems/2331.cpp) | +| 2343 | Medium | [Query Kth Smallest Trimmed Number](Problems/2343.cpp) | | 2359 | Medium | [Find Closest Node to Given Two Nodes](Problems/2359.cpp) | | 2368 | Medium | [Reachable Nodes With Restrictions](Problems/2368.cpp) | | 2374 | Medium | [Node With Highest Edge Score](Problems/2374.cpp) |