A place where I upload my Leetcode problems solutions.
Some notes:
- You can do whatever you want with whatever you find here.
- The solutions are sometimes updated if I come up with a better idea. They're never updated if I find a better solution made by someone else, so this is not meant to be a list of perfect solutions.
- The percentages shown under Runtime and Memory usage are obtained by submitting a solution 10 times and calculating the average. This is done because the measurements on leetcode seem to vary a lot.
- Most of them are not perfect, some are highly inefficient, and a few are complete garbage. Statistically, they're above average though.
- All solutions are in C++.
That being said, proceed with caution.
ID | Name | Leetcode link | Solution link | Runtime | Memory usage |
---|---|---|---|---|---|
38 | Count and Say | Leetcode link | Solution link | 42.95% | 97.23% |