单个文件编译运行方法:
以 000.TwoSum 为例:
solution.c
cd ./000.TwoSum/ && gcc Solution.c -o Solution && ./Solution
solution.py
cd ./000.TwoSum/ && py3 Solution.py
solution.java
cd ./000.TwoSum/ && javac Solution.java && java Solution
solution.js
cd ./000.TwoSum/ && node Solution.js
或者使用vscode
LeetCode solutions in Python3、C、Java and JavaScript
NO. | Title | Solution | Difficulty |
---|---|---|---|
000 | Two Sum | python、c、java、JavaScript | Easy |