LeetCode の問題を以下手順で解く
- Step1
- 答えを見ずに考えて、5分考えて分からなかったら答えを見る
- 答えを見て理解したと思ったら、答えを隠して書く
- 筆が進まず5分迷ったらもう一度答えを見る(見た場合は一回全部消してやり直し)
- 答えを送信して正解になったら1段階目終了
- Step2
- コードを読みやすくするようにできるだけ整える
- 動くコードになったら2段階目終了
- Step3
- コードを全部消す
- 時間を測りながらもう一度書く
- 1回もエラーを出さず、かつ10分以内に書ける状態になるまで続ける
- 3回続けて上記3を達成したら3段階目終了
| # | Title | Language | Difficulty |
|---|---|---|---|
| 3 | Longest Substring Without Repeating Characters | Python3 | Medium |
| 5 | Longest Palindromic Substring | Python3 | Medium |
| 11 | Container With Most Water | Python3 | Medium |
| 19 | Remove Nth Node From End of List | Python3 | Medium |
| 54 | Spiral Matrix | Python3 | Medium |
| 55 | Jump Game | Python3 | Medium |
| 73 | Set Matrix Zeroes | Python3 | Medium |
| 79 | Word Search | Python3 | Medium |
| 143 | Reorder List | Python3 | Medium |
| 153 | Find Minimum in Rotated Sorted Array | Python3 | Medium |
| 200 | Number of Islands | Python3 | Medium |
| 207 | Course Schedule | Python3 | Medium |
| 211 | Design Add and Search Words Data Structure | Python3 | Medium |
| 230 | Kth Smallest Element in a BST | Python3 | Medium |
| 235 | Lowest Common Ancestor of a Binary Search Tree | Python3 | Medium |
| 322 | Coin Change | Python3 | Medium |
| 347 | Top K Frequent Elements | Python3 | Medium |
| 417 | Pacific Atlantic Water Flow | Python3 | Medium |
| 435 | Non-overlapping Intervals | Python3 | Medium |
https://github.com/LeetCode-OpenSource/vscode-leetcode を使用(本レポジトリの .vscode/settings.json は単なる設定メモ、Workspace レベルでの設定はこの拡張機能では効かないようなので実際は User レベルで設定している)