LeetCode Java Solutions
Update from 陈皓 Haoel, they can automatically create java package, java source file by request LeetCode website.
Simple Usage: copy question url and exec like below
$ ./scripts/workflow.sh https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/
you will see
Step 1: Created "kthSmallestElementInASortedMatrix" package!
Step 2: Created "kthSmallestElementInASortedMatrix/Solution.java" source file!
Step 3: Edited the "kthSmallestElementInASortedMatrix/Solution.java"!
Step 4: Generate git-commit content!
feat: add 378.Kth Smallest Element in a Sorted Matrix
# You can copy above content when you already commit.
Done!
and start coding.
Thanks for 陈皓 Haoel wrote this original Bash scripts, it's compatible with C++ but not Java.
Order by recommendation from 代码随想录
# | Title | Solution | Difficulty |
---|---|---|---|
704 | Binary Search | Java | Easy |
27 | Remove Element | Java | Easy |
977 | Squares of a Sorted Array | Java | Easy |
209 | Minimum Size Subarray Sum | Java | Medium |
59 | Spiral Matrix II | Java | Medium |