385 Commits

Author SHA1 Message Date
9cc8c478b9 fix 0978: update a clearer solution 2021-11-24 10:33:13 +08:00
f0792d1179 Update solution 0520 2021-11-13 21:13:27 -08:00
8f64507c9c Merge pull request #188 from gostool/leetcode0520
Leetcode0520
2021-11-13 21:07:38 -08:00
d9a9759a11 Add solution 0494 2021-11-13 21:06:59 -08:00
3024684bf1 Merge pull request #187 from gostool/leetcode0495
Leetcode0495
2021-11-13 21:00:11 -08:00
79a5d9eba5 Add solution 1178 2021-11-13 20:59:34 -08:00
04eae300bc Add solution 0488 2021-11-13 20:41:51 -08:00
d0aa4565cc Merge pull request #185 from gostool/leetcode0488
Leetcode0488
2021-11-13 20:30:19 -08:00
6fac7d3f8c Add solution 0299 2021-11-13 20:29:11 -08:00
0ef19c8e0b add: leetcode 0520 readme 2021-11-13 20:45:23 +08:00
75d1e15eef add: leetcode 0520 test 2021-11-13 20:44:54 +08:00
761469af16 add: leetcode 0520 solution 2021-11-13 20:44:39 +08:00
a2859d0359 add: leetcode 0495 readme 2021-11-10 14:46:35 +08:00
ed4cc45b44 add: leetcode 0495 test 2021-11-10 14:46:20 +08:00
d7f2304e19 add: leetcode 0495 solution 2021-11-10 14:46:00 +08:00
81f38f90c3 add: leetcode 0488 readme 2021-11-09 16:21:56 +08:00
2a5d87d32e add: leetcode 0488 test 2021-11-09 16:21:25 +08:00
255faef838 add: leetcode 0488 solution 2021-11-09 16:21:11 +08:00
8ae68c0652 update: README.md 2021-11-08 17:01:43 +08:00
e6fd62785f add: leetcode 0299 solution 2021-11-08 16:59:23 +08:00
fcc3d10ff1 update solution 0031 & 0048 2021-11-06 20:56:12 -07:00
20ae5d88ba Merge pull request #180 from ashtishad/master
Update 031-Next Permutation and 048. Rotate Image
2021-11-06 19:28:11 -07:00
b3225a0f11 Add solution 492 2021-11-06 19:18:25 -07:00
f09ea6cd09 Update README 2021-11-06 19:06:10 -07:00
7d3ba345f3 Merge pull request #176 from gostool/leetcode0301
add: leetcode 0301 solution
2021-11-06 18:42:02 -07:00
a3f71751eb Merge pull request #181 from novahe/master
update/0515: add other solution
2021-11-06 18:28:03 -07:00
2608238acb update/0515: add other solution 2021-11-05 19:45:18 +08:00
e6938093ca Update 48. Rotate Image
Notes:
----------
* easily understandable logic.
* rotate clock-wise = 1. transpose matrix => 2. reverse(matrix[i])
* detailed explanation in comment.
* passes all testcases.

Time Complexity  : O(N)
Space Complexity : O(1)
2021-11-04 15:37:15 +06:00
86b2646ec6 Update 031-Next Permutation
Changes:
----------
* Devided resposiblity with using functions.
* Slice in already a reference type in go, means in passes actual slice(not a copy) to functions, that's why using pointers in swap and reverse functions look redundant in my opinion.

Discussion:
--------------
https://leetcode.com/problems/next-permutation/discuss/1554932/Go-Submission-with-Explanation
2021-11-04 15:16:54 +06:00
7d08f48786 add: leetcode 0301 solution 2021-10-27 12:36:07 +08:00
9effade48f Update 0352 solution 2021-10-21 22:48:09 -07:00
f68bec22d9 add: leetcode 0352 solution 2021-10-09 11:56:13 +08:00
0e69148802 Update 498 solution 2021-10-08 20:05:23 -07:00
219c53bb03 Update 434 solution 2021-10-08 19:58:15 -07:00
bde069b75e add: leetcode 0434 solution 2021-10-07 19:28:26 +08:00
f461eadb78 Update solution 0328 2021-09-17 23:41:06 -07:00
d32347137a Update solution 0058、0551、0958 2021-09-15 03:51:40 -07:00
0d3b70571a Merge pull request #170 from gostool/leetcode0058
add: leetcode 0058 solution
2021-09-15 03:19:21 -07:00
bef7599068 Add solution 0551 2021-09-15 03:18:02 -07:00
3c11d93a29 add: leetcode 0058 solution 2021-09-15 17:04:01 +08:00
29880358f0 Merge pull request #166 from gostool/leetcode0551
add: leetcode 0551 solution
2021-09-14 23:49:07 -07:00
5c0f4f9103 Merge pull request #167 from novahe/master
fix/445: add other solutions
2021-09-14 21:36:40 -07:00
3c85ef6e7a Update solution 0958 2021-09-14 21:25:13 -07:00
086c7c9eda Merge pull request #168 from 3inchtime/958
add solution - 958
2021-09-14 15:37:16 -07:00
a3f55d9560 Update solution 0494. Considering new edge test case. 2021-09-03 16:46:46 +08:00
e89003a2e3 Update solution 0494. Considering new edge test case. 2021-09-02 18:01:03 +08:00
61a586e96a Update solution 0494. Considering new edge test case. 2021-09-02 17:46:17 +08:00
e6bce61e81 add solution - 958 2021-08-30 23:22:14 +08:00
d1a87f1cbf fix/445: add other solution 2021-08-21 00:39:53 +08:00
5e49c8db0c Merge branch 'master' of https://github.com/halfrost/LeetCode-Go 2021-08-21 00:32:45 +08:00