https://github.com/letstayfoolish/leetcode-ts
https://github.com/letstayfoolish/leetcode-ts
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/letstayfoolish/leetcode-ts
- Owner: letStayFoolish
- Created: 2024-10-27T18:36:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-08T22:01:12.000Z (over 1 year ago)
- Last Synced: 2024-11-08T23:17:22.665Z (over 1 year ago)
- Language: TypeScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`