Commit Graph

366 Commits

Author SHA1 Message Date
tphyhFighting
255faef838 add: leetcode 0488 solution 2021-11-09 16:21:11 +08:00
halfrost
fcc3d10ff1 update solution 0031 & 0048 2021-11-06 20:56:12 -07:00
halfrost
20ae5d88ba Merge pull request #180 from ashtishad/master
Update 031-Next Permutation and 048. Rotate Image
2021-11-06 19:28:11 -07:00
halfrost
b3225a0f11 Add solution 492 2021-11-06 19:18:25 -07:00
halfrost
f09ea6cd09 Update README 2021-11-06 19:06:10 -07:00
halfrost
7d3ba345f3 Merge pull request #176 from gostool/leetcode0301
add: leetcode 0301 solution
2021-11-06 18:42:02 -07:00
halfrost
a3f71751eb Merge pull request #181 from novahe/master
update/0515: add other solution
2021-11-06 18:28:03 -07:00
novahe
2608238acb update/0515: add other solution 2021-11-05 19:45:18 +08:00
Ashef Habib Tishad
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
Ashef Habib Tishad
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
tphyhFighting
7d08f48786 add: leetcode 0301 solution 2021-10-27 12:36:07 +08:00
halfrost
9effade48f Update 0352 solution 2021-10-21 22:48:09 -07:00
tphyhFighting
f68bec22d9 add: leetcode 0352 solution 2021-10-09 11:56:13 +08:00
halfrost
0e69148802 Update 498 solution 2021-10-08 20:05:23 -07:00
halfrost
219c53bb03 Update 434 solution 2021-10-08 19:58:15 -07:00
tphyhFighting
bde069b75e add: leetcode 0434 solution 2021-10-07 19:28:26 +08:00
halfrost
f461eadb78 Update solution 0328 2021-09-17 23:41:06 -07:00
halfrost
d32347137a Update solution 0058、0551、0958 2021-09-15 03:51:40 -07:00
halfrost
0d3b70571a Merge pull request #170 from gostool/leetcode0058
add: leetcode 0058 solution
2021-09-15 03:19:21 -07:00
halfrost
bef7599068 Add solution 0551 2021-09-15 03:18:02 -07:00
tphyhFighting
3c11d93a29 add: leetcode 0058 solution 2021-09-15 17:04:01 +08:00
halfrost
29880358f0 Merge pull request #166 from gostool/leetcode0551
add: leetcode 0551 solution
2021-09-14 23:49:07 -07:00
halfrost
5c0f4f9103 Merge pull request #167 from novahe/master
fix/445: add other solutions
2021-09-14 21:36:40 -07:00
halfrost
3c85ef6e7a Update solution 0958 2021-09-14 21:25:13 -07:00
halfrost
086c7c9eda Merge pull request #168 from 3inchtime/958
add solution - 958
2021-09-14 15:37:16 -07:00
zhufenggood
a3f55d9560 Update solution 0494. Considering new edge test case. 2021-09-03 16:46:46 +08:00
zhufenggood
e89003a2e3 Update solution 0494. Considering new edge test case. 2021-09-02 18:01:03 +08:00
zhufenggood
61a586e96a Update solution 0494. Considering new edge test case. 2021-09-02 17:46:17 +08:00
3inchtime
e6bce61e81 add solution - 958 2021-08-30 23:22:14 +08:00
novahe
d1a87f1cbf fix/445: add other solution 2021-08-21 00:39:53 +08:00
novahe
5e49c8db0c Merge branch 'master' of https://github.com/halfrost/LeetCode-Go 2021-08-21 00:32:45 +08:00
novahe
daa7c7f044 fix/445: add other solution 2021-08-21 00:31:31 +08:00
tphyhFighting
d0f54e2bbd add: leetcode 0551 solution 2021-08-17 17:30:59 +08:00
halfrost
2189396c54 Add solution 0677 2021-08-14 10:16:17 +08:00
halfrost
4268f5837b Add solution 0429 2021-08-08 22:44:30 +08:00
halfrost
a43125dc18 Add solution 1877 2021-08-08 20:33:36 +08:00
halfrost
35530a4de4 Update solution 0116 2021-08-07 11:18:57 +08:00
halfrost
d1e24bf344 Merge pull request #165 from 3inchtime/116
add 116 solution
2021-08-07 10:59:49 +08:00
halfrost
6e74af9d6c Update solution 0106 2021-08-07 10:57:03 +08:00
halfrost
c1d27a197b Update solution 0105 2021-08-07 10:48:43 +08:00
halfrost
e4505aab14 Update solution 1104 2021-08-07 10:27:48 +08:00
halfrost
78f8879463 Merge pull request #161 from gostool/leetcode1104
add: leetcode 1104 solution
2021-08-07 10:12:52 +08:00
halfrost
3755d3f251 Update solution 0018 2021-08-07 10:11:27 +08:00
halfrost
ae5c145c3f Update solution 0016 2021-08-07 09:58:49 +08:00
halfrost
2f2ba72e92 Update solution 0242 2021-08-07 08:49:07 +08:00
halfrost
0547b8b075 Merge pull request #160 from brenobaptista/suggestion-242
Suggestion 242
2021-08-07 08:37:38 +08:00
halfrost
040ac16526 Update solution 0543 2021-08-07 08:36:35 +08:00
halfrost
1c662f4330 Merge pull request #159 from brenobaptista/solution-543
Added solution 543
2021-08-07 08:00:45 +08:00
halfrost
765bb777e3 Update solution 0141 2021-08-07 07:23:55 +08:00
halfrost
23beddc2b1 Merge pull request #157 from brenobaptista/cleaned-141
Cleaned 141
2021-08-06 21:49:24 +08:00