You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,9 @@
2
2
3
3
Each day (ideally) we'll attempt the daily [leetcode](https://leetcode.com) problem. We'll make a new folder for each day's problem. Anyone who wants can submit a markdown file, iPython notebook, etc. with their notes, questions, solutions, test cases, or other problem-related files.
| 📆 Date | ⚙️ Problem | 📝 Link to notes | 🚦 Difficulty |
@@ -19,17 +22,17 @@ If you're a member of [our lab](https://www.context-lab.com/) and/or a [Dartmout
19
22
20
23
# Submit your own notes and/or solution(s)
21
24
22
-
1. Start by [forking](https://github.com/ContextLab/leetcode-solutions/fork) this repository.
23
-
2. In your fork, navigate to the [problems](https://github.com/ContextLab/leetcode-solutions/new/main/problems) folder and click the **Add file** button on the right. Choose the **Create new file** option:
24
-
- File name: `leetcode-solutions/problems/<PROBLEM NUMBER>/<your name>.md` (where you should replace `<PROBLEM NUMBER>` with the leetcode problem ID code, and `<your name>` with either your first name or your GitHub username (your choice!), in lowercase letters. E.g., [Jeremy](https://www.context-lab.com/people)'s solution to problem 350 would be named `leetcode-solutions/blob/main/problems/350/jeremy.md`
25
-
- Contents: Any format is fine, but we suggest starting with our [template file](https://github.com/ContextLab/leetcode-solutions/blob/main/problems/template.md). Then add your notes/solution as you solve the problem! Make sure to commit your changes (and it's fine to make multiple commits as you're working on the problem).
25
+
1. Start by [forking](https://github.com/ContextLab/leetcode-solutions/fork) this repository. Or if you've already forked this, visit your fork and make sure to click the button to sync it up with this (source) repository.
26
+
2. In your fork, in the menu near the top click on **Actions** to open up the GitHub Actions list. Then click on **Create New Note for Daily LeetCode Problem** and then click **Run workflow** to create your new notes file for today's problem. Click the link to the notes on today's problem in the last row [table above](https://github.com/ContextLab/leetcode-solutions#problems-weve-attempted-thus-far) and you should see a markdown (.md) file named for your GitHub username. Edit that to add your notes!
27
+
- If you're the "build it yourself" type, it's also OK to create your notes file manually. Just navigate to the [problems](https://github.com/ContextLab/leetcode-solutions/new/main/problems) folder and click the **Add file** button on the right. Choose the **Create new file** option:
28
+
- File name: `leetcode-solutions/problems/<PROBLEM NUMBER>/<your name>.md` (where you should replace `<PROBLEM NUMBER>` with the leetcode problem ID code, and `<your name>` with either your first name or your GitHub username (your choice!), in lowercase letters. E.g., [Jeremy](https://www.context-lab.com/people)'s solution to problem 350 would be named `leetcode-solutions/blob/main/problems/350/jeremy.md`
29
+
- Contents: Any format is fine, but we suggest starting with our [template file](https://github.com/ContextLab/leetcode-solutions/blob/main/problems/template.md). Then add your notes/solution as you solve the problem! Make sure to commit your changes (and it's fine to make multiple commits as you're working on the problem).
26
30
3. Once you've added your file, start a [pull request](https://github.com/ContextLab/leetcode-solutions/pulls) to add it into the ContextLab fork so that others can see how you approached the problem.
27
31
4. Also make sure that the problem has been added to the [table](https://github.com/ContextLab/leetcode-solutions#problems-weve-attempted-thus-far). If you're the first one to work on a problem, you'll need to add a row for it. Problems should be listed in chronological order from top (earliest) to bottom (latest).
28
32
29
33
# Other stuff
30
34
31
-
- Click [here](https://github.com/ContextLab/leetcode-solutions/actions/workflows/create_new_note.yml) and then click "Run workflow" to run our shortcut action for creating a new note for the daily problem based on the template.md file. Then click the link to the notes on today's problem in the last row [table above](https://github.com/ContextLab/leetcode-solutions#problems-weve-attempted-thus-far) and you should see a markdown (.md) file named for your GitHub username. Edit that to add your notes!
32
-
- The [table](https://github.com/ContextLab/leetcode-solutions#problems-weve-attempted-thus-far) listing each day's problems and links to our solutions *should* be updated automatically via [this action](https://github.com/ContextLab/leetcode-solutions/actions/workflows/update_readme.yml) (run each day at 00:01 UTC, which is 1 minute after the daily problems are released).
35
+
The [table](https://github.com/ContextLab/leetcode-solutions#problems-weve-attempted-thus-far) listing each day's problems and links to our solutions *should* be updated automatically via [this action](https://github.com/ContextLab/leetcode-solutions/actions/workflows/update_readme.yml) (run each day at 00:01 UTC, which is 1 minute after the daily problems are released). Sometimes it's a little late. Consider making a cup of tea (🍵) or having a nice snack (🍨) and returning in a few minutes! Bonus: you get a drink and a snack while you're working on the problem!
0 commit comments