Solutions to the top 150 LeetCode interview questions implemented in TypeScript.
LeetCode is a popular platform for practicing coding skills through solving algorithmic problems. This repository aims to provide TypeScript solutions to the top 150 LeetCode interview questions, helping developers enhance their problem-solving abilities and familiarize themselves with TypeScript.
To use the solutions in this repository, you need to have Bun installed on your machine. You can install it by following these steps:
-
Install Bun: Open a terminal or command prompt and run the following command to install Bun:
curl -fsSL https://bun.sh/install | bash
-
Clone the repository: Use the following command to clone this repository to your local machine:
git clone https://github.com/gabrielpalassi/LeetCodeTS.git
Each solution is implemented in a separate TypeScript file. To run a specific solution, follow these steps:
-
Open a terminal or command prompt.
-
Navigate to the root directory of the cloned repository and then to the appropriate folder.
-
You can run a specific solution by executing the following command:
bun run name-of-problem.ts
Replace
name-of-problem.ts
with the actual name of the TypeScript file containing the solution you want to run.
Note: Make sure to add your test cases within the solution file before running it, as the files only contain function implementations.
We welcome contributions to this repository. If you have ideas for new solutions, bug fixes, or improvements, please open an issue or submit a pull request.
If you have any questions, suggestions, or feedback, feel free to reach out to me at my e-mail.