Commit Graph

398 Commits

Author SHA1 Message Date
halfrost
f2efd77482 Update solution 0014 2021-11-25 23:52:44 -08:00
halfrost
a2b23a3292 Merge pull request #192 from gostool/leetcode0014
Leetcode0014
2021-11-25 23:51:02 -08:00
halfrost
0495d2b0ff Update solution 0391 2021-11-25 23:36:14 -08:00
halfrost
fd41bd923c Merge pull request #191 from gostool/leetcode0391
Leetcode0391
2021-11-25 23:33:23 -08:00
halfrost
1bce2a9193 Update solution 0319 2021-11-25 23:32:07 -08:00
tphyhFighting
1ba28c5bbf add: leetcode 0014 readme 2021-11-19 10:33:14 +08:00
tphyhFighting
179ac20a83 add: leetcode 0014 test 2021-11-19 10:33:00 +08:00
tphyhFighting
8583203e26 add: leetcode 0014 solution 2021-11-19 10:32:49 +08:00
tphyhFighting
6df33967bd add: leetcode 0391 readme 2021-11-16 12:12:42 +08:00
tphyhFighting
1843c18959 add: leetcode 0391 test 2021-11-16 12:12:22 +08:00
tphyhFighting
df536787f0 add: leetcode 0391 solution 2021-11-16 12:12:07 +08:00
tphyhFighting
006fadc53b add: leetcode 0319 readme 2021-11-15 11:42:43 +08:00
tphyhFighting
4fda03d823 add: leetcode 0319 test 2021-11-15 11:42:30 +08:00
tphyhFighting
bda179b761 add: leetcode 0319 solution 2021-11-15 11:42:20 +08:00
halfrost
f0792d1179 Update solution 0520 2021-11-13 21:13:27 -08:00
halfrost
8f64507c9c Merge pull request #188 from gostool/leetcode0520
Leetcode0520
2021-11-13 21:07:38 -08:00
halfrost
d9a9759a11 Add solution 0494 2021-11-13 21:06:59 -08:00
halfrost
3024684bf1 Merge pull request #187 from gostool/leetcode0495
Leetcode0495
2021-11-13 21:00:11 -08:00
halfrost
79a5d9eba5 Add solution 1178 2021-11-13 20:59:34 -08:00
halfrost
04eae300bc Add solution 0488 2021-11-13 20:41:51 -08:00
halfrost
d0aa4565cc Merge pull request #185 from gostool/leetcode0488
Leetcode0488
2021-11-13 20:30:19 -08:00
halfrost
6fac7d3f8c Add solution 0299 2021-11-13 20:29:11 -08:00
tphyhFighting
0ef19c8e0b add: leetcode 0520 readme 2021-11-13 20:45:23 +08:00
tphyhFighting
75d1e15eef add: leetcode 0520 test 2021-11-13 20:44:54 +08:00
tphyhFighting
761469af16 add: leetcode 0520 solution 2021-11-13 20:44:39 +08:00
tphyhFighting
a2859d0359 add: leetcode 0495 readme 2021-11-10 14:46:35 +08:00
tphyhFighting
ed4cc45b44 add: leetcode 0495 test 2021-11-10 14:46:20 +08:00
tphyhFighting
d7f2304e19 add: leetcode 0495 solution 2021-11-10 14:46:00 +08:00
tphyhFighting
81f38f90c3 add: leetcode 0488 readme 2021-11-09 16:21:56 +08:00
tphyhFighting
2a5d87d32e add: leetcode 0488 test 2021-11-09 16:21:25 +08:00
tphyhFighting
255faef838 add: leetcode 0488 solution 2021-11-09 16:21:11 +08:00
tphyhFighting
8ae68c0652 update: README.md 2021-11-08 17:01:43 +08:00
tphyhFighting
e6fd62785f add: leetcode 0299 solution 2021-11-08 16:59:23 +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