I am following the 12-week LeetCode study plan outlined by Dave Burji to enhance my problem-solving skills and prepare for coding interviews. Started on 03/04/2024
The plan is well-structured and spread over 12 weeks, targeting different topics essential for coding interviews. Each week focuses on specific types of problems, gradually increasing in complexity.
-
Video Guide: Dave Burji's LeetCode Study Plan provides a comprehensive overview and tips for effectively tackling the problems week by week.
-
Notion Doc: The original study plan on Notion outlines the weekly topics and includes additional resources and problem sets.
-
My Notion Doc: I have also created a personalized study guide that adapts the original plan to my progress and reflections and including tests.
-
Install TypeScript: To get started with TypeScript, you need to install it globally or in app. You can do this using npm (Node Package Manager) with the following command:
npm install -g typescript
or
npm install -D typescript
-
Initialize a new TypeScript configuration file (tsconfig.json)
tsc --init
-
Now, open tsconfig.json and update the following settings for rootDir and outDir. You can manually edit the tsconfig.json file to include these lines:
"rootDir": "./src", "outDir": "./dist",
-
To continuously watch and compile your TypeScript files, use:
tsc --watch
-
Ensure you have Node.js version 18.11 or higher for node --watch Check your Node version using:
node -v
-
To run your JavaScript file with Node.js, use:
node --watch <./dist/file.js>
results can be watched and checked while working in the environment in real-time with typescript watch and node js watch
console.assert(solutionFunction(..args) === expectedResult, `expects <RESULT> | Returned $`{solutinFunction(...args)}`;
Special thanks to Dave Burji for creating and sharing this valuable study plan.