Skip to content

ThanhDat22/leetcode

Repository files navigation

LeetCode Solutions

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 a main() for quick testing
  • A short per-problem README.md (problem statement, examples, approach, and complexity)
  • (Sometimes) a Makefile and helper headers (e.g., a custom Vector.h)

πŸ“ Repository Structure

.
β”œβ”€ 1_twoSum/
β”œβ”€ 2_addTwoNumbers/
β”œβ”€ 3_longestSubstringWithoutRepeatingCharacters/
β”œβ”€ 4_medianOf2SortedList/
β”œβ”€ 9_palindromeNumber/
.
.
.
β”œβ”€ 121_bestTimeToBuyAndSellStock/
.
.
.
└─ README.md ← (this file)

βš™οΈ Build & Run

Using make

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published