This directory contains my solutions to LeetCode problems. These solutions are provided "as is". I give no guarantees that they will work as expected. Please refrain from using my solutions in the site.
LeetCode problems are solved by implementing a method of a given class. Each
file under the src/ category contains the implementation of the required
class. As such, these aren't runnable on their own. To run these, either resort
to LeetCode's platform or create a main method that contains calls to the
implemented methods.
I try to name the filenames according to the problem names, so that they are
easily identifiable. Files in src/ should follow the naming format
<problem-number>-<problem-name>.cpp. The URL for each problem in LeetCode
should be https://leetcode.com/problems/<problem-name>/. For example, file
src/0001-two-sum.cpp refers to problem number 1 named "Two Sum", whose URL is
https://leetcode.com/problems/two-sum/.