602 Commits

Author SHA1 Message Date
0a27b2bd28 add: leetcode 0859 readme 2021-11-23 10:44:49 +08:00
3d044414a2 add: leetcode 0859 test 2021-11-23 10:44:37 +08:00
36f13cef14 add: leetcode 0859 solution 2021-11-23 10:44:27 +08:00
79079c6a08 add: leetcode 0384 readme 2021-11-22 16:51:10 +08:00
f8a3773911 add: leetcode 0384 test 2021-11-22 16:50:55 +08:00
469e775a97 add: leetcode 0384 solution 2021-11-22 16:50:43 +08:00
2163cb1657 add: leetcode 0559 readme 2021-11-21 12:05:20 +08:00
3e31bbd244 add: leetcode 0559 test 2021-11-21 12:05:08 +08:00
d4704811b9 add: leetcode 0559 solution 2021-11-21 12:01:24 +08:00
1ba28c5bbf add: leetcode 0014 readme 2021-11-19 10:33:14 +08:00
179ac20a83 add: leetcode 0014 test 2021-11-19 10:33:00 +08:00
8583203e26 add: leetcode 0014 solution 2021-11-19 10:32:49 +08:00
6df33967bd add: leetcode 0391 readme 2021-11-16 12:12:42 +08:00
1843c18959 add: leetcode 0391 test 2021-11-16 12:12:22 +08:00
df536787f0 add: leetcode 0391 solution 2021-11-16 12:12:07 +08:00
006fadc53b add: leetcode 0319 readme 2021-11-15 11:42:43 +08:00
4fda03d823 add: leetcode 0319 test 2021-11-15 11:42:30 +08:00
bda179b761 add: leetcode 0319 solution 2021-11-15 11:42:20 +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