This repository contains my solutions to various LeetCode problems.
Solutions are written in C++, organized by problem number/title, and each problem folder usually includes:
- Source code (
.cpp
) with amain()
for quick testing - A short per-problem
README.md
(problem statement, examples, approach, and complexity) - (Sometimes) a
Makefile
and helper headers (e.g., a customVector.h
)
.
ββ 1_twoSum/
ββ 2_addTwoNumbers/
ββ 3_longestSubstringWithoutRepeatingCharacters/
ββ 4_medianOf2SortedList/
ββ 9_palindromeNumber/
.
.
.
ββ 121_bestTimeToBuyAndSellStock/
.
.
.
ββ README.md β (this file)
cd <problem_folder>
make # builds the program (target name can be 'program' or the problem)
./program # or ./<target_name>
After having done with testing, do house keeping:
make clean