> Mahmoud Ashraf Website


Week #01 of Leetcode (Jun 08, 2024)

So this is my first week of my LeetCode grinding journey, and I want to share my notes and the techniques I’ve learned and the problems I’ve solved each week.

For solving the problems, I’ve created a new Git repository and keep track of my answers by creating a directory for each problem with the following structure:

├── 1002_find_common_characters
│   ├──        # showing the solutin and notes
│   ├── index.ts        # the optimal soltution
│   ├── bruteforce.ts   # a brute-force soltuion
│   └── index.test.ts   # testing useing vitest