An open API service indexing awesome lists of open source software.

https://github.com/letstayfoolish/leetcode-ts


https://github.com/letstayfoolish/leetcode-ts

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

## Run code

To run TypeScript code in this project, you can either compile it to JavaScript first or use a tool like ts-node to run it directly without needing to compile.

### Option 1: Run with ts-node (Recommended for Development)

1. Install ts-node:
`npm install -D ts-node`

2. Run a Specific TypeScript File:
`npx ts-node path/to/your/file.ts`

For example, if you want to run a solution in the Easy/0001/solution.ts file, you’d use:
`npx ts-node Easy/0001/solution.ts`