ch
Feedback
Leetcode_daily

Leetcode_daily

前往频道在 Telegram

Don't miss a day to solve the problem My leetcode graph - https://leetcode.com/SamoylenkoDmitry/

显示更多
1 662
订阅者
+124 小时
-67
-1530
吸引订阅者
六月 '26
六月 '26
+3
在0个频道中
五月 '26
+16
在0个频道中
Get PRO
四月 '26
+19
在0个频道中
Get PRO
三月 '26
+19
在0个频道中
Get PRO
二月 '26
+25
在0个频道中
Get PRO
一月 '26
+35
在0个频道中
Get PRO
十二月 '25
+22
在0个频道中
Get PRO
十一月 '25
+35
在0个频道中
Get PRO
十月 '25
+31
在0个频道中
Get PRO
九月 '25
+56
在0个频道中
Get PRO
八月 '25
+56
在0个频道中
Get PRO
七月 '25
+62
在0个频道中
Get PRO
六月 '25
+39
在0个频道中
Get PRO
五月 '25
+53
在0个频道中
Get PRO
四月 '25
+54
在0个频道中
Get PRO
三月 '25
+75
在0个频道中
Get PRO
二月 '25
+43
在0个频道中
Get PRO
一月 '25
+90
在0个频道中
Get PRO
十二月 '24
+77
在0个频道中
Get PRO
十一月 '24
+146
在0个频道中
Get PRO
十月 '24
+91
在0个频道中
Get PRO
九月 '24
+53
在0个频道中
Get PRO
八月 '24
+148
在0个频道中
Get PRO
七月 '24
+89
在0个频道中
Get PRO
六月 '24
+60
在0个频道中
Get PRO
五月 '24
+70
在0个频道中
Get PRO
四月 '24
+68
在0个频道中
Get PRO
三月 '24
+60
在0个频道中
Get PRO
二月 '24
+140
在0个频道中
Get PRO
一月 '24
+312
在0个频道中
Get PRO
十二月 '23
+263
在0个频道中
日期
订阅者增长
提及
频道
11 六月0
10 六月+1
09 六月0
08 六月+1
07 六月0
06 六月0
05 六月0
04 六月0
03 六月+1
02 六月0
01 六月0
频道帖子
# 10.06.2026 3691. Maximum Total Subarray Value II hard sum k largest ranges max(l..r)-min(l..r) blog: https://dmitrysamoylen
# 10.06.2026 3691. Maximum Total Subarray Value II hard sum k largest ranges max(l..r)-min(l..r) blog: https://dmitrysamoylenko.com/leetcode/ youtube: https://youtu.be/1YRY30jcew4

2
1L*k*(n.max()-n.min())
70
3
fun pivotArray(n: IntArray, p: Int) = n.sortedBy { (it-p).sign } this can't be done in-place in O(n)
101
4
fun createBinaryTree(d: Array<IntArray>): TreeNode? { val m = HashMap<Int, TreeNode>(); val hasParent = HashSet<Int>() for ((p,c,l) in d) { val pn = m.getOrPut(p) {TreeNode(p)} val cn = m.getOrPut(c) {TreeNode(c)} if (l>0) pn.left = cn else pn.right = cn hasParent += c } return m[d.first { (p,c,l) -> p !in hasParent }[0]] } no posts today, i'm traveling
133
5
# 06.06.2026 2574. Left and Right Sum Differences easy abs(prefix sum - suffix sum) blog: https://dmitrysamoylenko.com/leetco
# 06.06.2026 2574. Left and Right Sum Differences easy abs(prefix sum - suffix sum) blog: https://dmitrysamoylenko.com/leetcode/ youtube: https://youtu.be/SuQyVx0VcSE
152
6
# 05.06.2026 3753. Total Waviness of Numbers in Range II hard Count hills and valleys base10 in a..b blog: https://dmitrysamo
# 05.06.2026 3753. Total Waviness of Numbers in Range II hard Count hills and valleys base10 in a..b blog: https://dmitrysamoylenko.com/leetcode/ youtube: https://youtu.be/G5IQBvlhUsw
142
7
# 04.06.2026 3751. Total Waviness of Numbers in Range I medium Count hills and valleys base10 in a..b blog: https://dmitrysam
# 04.06.2026 3751. Total Waviness of Numbers in Range I medium Count hills and valleys base10 in a..b blog: https://dmitrysamoylenko.com/leetcode/ youtube: https://youtu.be/_mxzQ39Vwwo
135
8
# 03.06.2026 3635. Earliest Finish Time for Land and Water Rides II medium Min finish time of land + water single events blog
# 03.06.2026 3635. Earliest Finish Time for Land and Water Rides II medium Min finish time of land + water single events blog: https://dmitrysamoylenko.com/leetcode/ youtube: https://youtu.be/ctbEphoD83c
123
9
# 02.06.2026 3633. Earliest Finish Time for Land and Water Rides I easy Min finish time of land + water single events blog: h
# 02.06.2026 3633. Earliest Finish Time for Land and Water Rides I easy Min finish time of land + water single events blog: https://dmitrysamoylenko.com/leetcode/ youtube: https://youtu.be/QOgbGrliyAw
127
10
# 01.06.2026 2144. Minimum Cost of Buying Candies With Discount easy Min sum taking 2 out of 3 blog: https://dmitrysamoylenko
# 01.06.2026 2144. Minimum Cost of Buying Candies With Discount easy Min sum taking 2 out of 3 blog: https://dmitrysamoylenko.com/leetcode/ youtube: https://youtu.be/vDQlS-53V2Y
131
11
# 31.05.2026 2126. Destroying Asteroids medium Can consume all asteroids smaller than running sum? blog: https://dmitrysamoyl
# 31.05.2026 2126. Destroying Asteroids medium Can consume all asteroids smaller than running sum? blog: https://dmitrysamoylenko.com/leetcode/ youtube: https://youtu.be/QTn773sIRmQ
129
12
# 30.05.2026 3161. Block Placement Queries hard Queries 'can place a gap after place an obstacle' blog: https://dmitrysamoyle
# 30.05.2026 3161. Block Placement Queries hard Queries 'can place a gap after place an obstacle' blog: https://dmitrysamoylenko.com/leetcode/ youtube: https://youtu.be/RxfxXaQ3IRM
140
13
# 29.05.2026 3300. Minimum Element After Replacement With Digit Sum easy Min of digits sum blog: https://dmitrysamoylenko.com
# 29.05.2026 3300. Minimum Element After Replacement With Digit Sum easy Min of digits sum blog: https://dmitrysamoylenko.com/leetcode/ youtube: https://youtu.be/FfOi6aizg2c
140
14
# 28.05.2026 3093. Longest Common Suffix Queries hard Query common suffixes match blog: https://dmitrysamoylenko.com/leetcode
# 28.05.2026 3093. Longest Common Suffix Queries hard Query common suffixes match blog: https://dmitrysamoylenko.com/leetcode/ youtube: https://youtu.be/AiPXs-7kVkI
145
15
# 27.05.2026 3121. Count the Number of Special Characters II medium Count sorted characters blog: https://dmitrysamoylenko.co
# 27.05.2026 3121. Count the Number of Special Characters II medium Count sorted characters blog: https://dmitrysamoylenko.com/leetcode/ youtube: https://youtu.be/Ngzq2yMD4ZY
154
16
# 26.05.2026 3120. Count the Number of Special Characters I easy Count letters with both cases blog: https://dmitrysamoylenko
# 26.05.2026 3120. Count the Number of Special Characters I easy Count letters with both cases blog: https://dmitrysamoylenko.com/leetcode/ youtube: https://youtu.be/1qIg9iPsFYo
153
17
# 25.05.2026 1871. Jump Game VII medium Can reach end jumping min..max to zeros blog: https://dmitrysamoylenko.com/leetcode/
# 25.05.2026 1871. Jump Game VII medium Can reach end jumping min..max to zeros blog: https://dmitrysamoylenko.com/leetcode/ youtube: https://youtu.be/7WMg6mBUWTI
138
18
# 24.05.2026 1340. Jump Game V hard Max visited by jumping down in distance d blog: https://dmitrysamoylenko.com/leetcode/ yo
# 24.05.2026 1340. Jump Game V hard Max visited by jumping down in distance d blog: https://dmitrysamoylenko.com/leetcode/ youtube: https://youtu.be/cFP2O3VuItc
148
19
# 23.05.2026 1752. Check if Array Is Sorted and Rotated easy Is array shifted and sorted? blog: https://dmitrysamoylenko.com/
# 23.05.2026 1752. Check if Array Is Sorted and Rotated easy Is array shifted and sorted? blog: https://dmitrysamoylenko.com/leetcode/ youtube: https://youtu.be/xdsd1Wm-TsM
174
20
# 22.05.2026 33. Search in Rotated Sorted Array medium Binary search in shifted array blog: https://dmitrysamoylenko.com/leet
# 22.05.2026 33. Search in Rotated Sorted Array medium Binary search in shifted array blog: https://dmitrysamoylenko.com/leetcode/ youtube: https://youtu.be/eDQYY0qkkc0
165