#leetcodemedium Suchergebnisse

#73 Set Matrix Zeroes ๐ŸŸฆ Given an mร—n matrix, if an element = 0 โ†’ set its row & col to 0. โšก In-place, O(1) space: use 1st row/col as markers โ†’ mark, zero out, then fix 1st row/col. ๐Ÿ“Š Time: O(mn) | Space: O(1) #SetMatrixZeroes #LeetCodeMedium #InterviewReady

eninjain's tweet image. #73 Set Matrix Zeroes ๐ŸŸฆ
Given an mร—n matrix, if an element = 0 โ†’ set its row & col to 0.
โšก In-place, O(1) space: use 1st row/col as markers โ†’ mark, zero out, then fix 1st row/col.
๐Ÿ“Š Time: O(mn) | Space: O(1)
#SetMatrixZeroes #LeetCodeMedium #InterviewReady

โ€œMarked the numbers, flipped the signs, and caught the sneaky duplicates. Clean, fast, and memory-wise. โšก #LeetCodeMedium #JavaMastery #CodeSmartโ€

Abhinandan34988's tweet image. โ€œMarked the numbers, flipped the signs, and caught the sneaky duplicates. Clean, fast, and memory-wise. โšก #LeetCodeMedium #JavaMastery #CodeSmartโ€

155. Min Stack - Leetcode solution in Golang. #LeetcodeMedium #Stack

the_code_club's tweet image. 155. Min Stack - Leetcode solution in Golang.

#LeetcodeMedium #Stack

๐Ÿ›ค๏ธ #64 Minimum Path Sum Find the min path sum in an mร—n grid, moving only โฌ‡๏ธ or โžก๏ธ. Ex: [[1,3,1],[1,5,1],[4,2,1]] โ†’ 7 โœ… (path: 1โ†’3โ†’1โ†’1โ†’1) ๐Ÿ’ก DP trick: dp[i][j] = grid[i][j] + min(top,left) โฑ O(mn), ๐Ÿ—‚ O(mn)/O(n). #DynamicProgramming #LeetCodeMedium #InterviewReady

eninjain's tweet image. ๐Ÿ›ค๏ธ #64 Minimum Path Sum
Find the min path sum in an mร—n grid, moving only โฌ‡๏ธ or โžก๏ธ.
Ex: [[1,3,1],[1,5,1],[4,2,1]] โ†’ 7 โœ… (path: 1โ†’3โ†’1โ†’1โ†’1)
๐Ÿ’ก DP trick: dp[i][j] = grid[i][j] + min(top,left)
โฑ O(mn), ๐Ÿ—‚ O(mn)/O(n).
#DynamicProgramming #LeetCodeMedium #InterviewReady

Leetcode 739 โ€” Daily Temperatures: Solution in Golang. #LeetcodeMedium #Stack

the_code_club's tweet image. Leetcode 739 โ€” Daily Temperatures: Solution in Golang.
#LeetcodeMedium #Stack

๐Ÿ›ฃ๏ธ #71 Simplify Path Simplify a Unix-style absolute path. / separates dirs, . = current, .. = parent. Remove extra slashes. Ex: "/home/"โ†’"/home", "/a/./b/../../c/"โ†’"/c" โœ… โฑ O(n) | ๐Ÿ“ฆ O(n) #SimplifyPath #StringParsing #LeetCodeMedium #UnixPaths #EdgeCases

eninjain's tweet image. ๐Ÿ›ฃ๏ธ #71 Simplify Path
Simplify a Unix-style absolute path. / separates dirs, . = current, .. = parent. Remove extra slashes.
Ex: "/home/"โ†’"/home", "/a/./b/../../c/"โ†’"/c" โœ…
โฑ O(n) | ๐Ÿ“ฆ O(n)
#SimplifyPath #StringParsing #LeetCodeMedium #UnixPaths #EdgeCases

Stop using arrays to solve linked list leetcode problems. Leetcode 92 - Reverse Linked List 2 - C++ #LeetcodeMedium #LinkedList

the_code_club's tweet image. Stop using arrays to solve linked list leetcode problems.

Leetcode 92 - Reverse Linked List 2 - C++

#LeetcodeMedium #LinkedList

๐Ÿ”ข #81 Search in Rotated Sorted Array Find a target in a sorted array rotated at a pivot. ๐ŸŽฏ Use modified binary search: check which half is sorted, then narrow search. Input: [4,5,6,7,0,1,2], target=0 โ†’ Output: 4 โœ… O(log n) time, O(1) space. #BinarySearch #LeetCodeMedium

eninjain's tweet image. ๐Ÿ”ข #81 Search in Rotated Sorted Array
Find a target in a sorted array rotated at a pivot. ๐ŸŽฏ Use modified binary search: check which half is sorted, then narrow search.

Input: [4,5,6,7,0,1,2], target=0 โ†’ Output: 4 โœ…
O(log n) time, O(1) space.
#BinarySearch #LeetCodeMedium

#74 Search 2D Matrix Matrix sorted row-wise & first of each row > last of prev. Find target โœ… โšก Trick: treat it as 1D โ†’ Binary Search! row=mid/n, col=mid%n โฑ O(log(mn)) | ๐Ÿ’พ O(1) #Search2DMatrix #BinarySearch #LeetCodeMedium #InterviewReady

eninjain's tweet image. #74 Search 2D Matrix
Matrix sorted row-wise & first of each row > last of prev. Find target โœ…
โšก Trick: treat it as 1D โ†’ Binary Search! row=mid/n, col=mid%n
โฑ O(log(mn)) | ๐Ÿ’พ O(1)
#Search2DMatrix #BinarySearch #LeetCodeMedium #InterviewReady

735. Asteroid Collision - Leetcode problem solution in #Golang. #LeetcodeMedium #Stack

the_code_club's tweet image. 735. Asteroid Collision - Leetcode problem solution in #Golang.

#LeetcodeMedium #Stack

452. Minimum Number of Arrows to Burst Balloons. Leetcode problem solution in Golang. #Leetcode150 #LeetcodeMedium #Golang

the_code_club's tweet image. 452. Minimum Number of Arrows to Burst Balloons.

Leetcode problem solution in Golang.

#Leetcode150 #LeetcodeMedium #Golang

Solved another problem which is based on sliding window technique. Leetcode 1004 - Max Consecutive Ones III Check reply to view my solution. #LeetcodeMedium #SlidingWindow #Arrays

the_code_club's tweet image. Solved another problem which is based on sliding window technique. 

Leetcode 1004 - Max Consecutive Ones III

Check reply to view my solution.

#LeetcodeMedium #SlidingWindow #Arrays

I think this is the first medium level problem which I have solved using Go ๐Ÿฅณ Leetcode 2095 - Delete middle node of linked list - Solution in Go. #LeetcodeMedium #LinkedList #100DaysOfCode

the_code_club's tweet image. I think this is the first medium level problem which I have solved using Go ๐Ÿฅณ

Leetcode 2095 - Delete middle node of linked list - Solution in Go.

#LeetcodeMedium #LinkedList #100DaysOfCode

๐Ÿ”ข #50 Pow(x, n) โ€” Raise x to power n โšก Donโ€™t multiply x again & again! Use Fast Power: ๐Ÿ‘‰ If n even: xโฟ = (xยฒ)โฟโ„ยฒ ๐Ÿ‘‰ If n odd: xโฟ = x ร— (xยฒ)โฟโ„ยฒ ๐Ÿ‘‰ If n < 0: flip โ†’ x = 1/x, n = -n โฑ Time: O(log n) ๐Ÿ“ฆ Space: O(1) #SmartMath #BinaryPower #LeetCodeMedium

eninjain's tweet image. ๐Ÿ”ข #50 Pow(x, n) โ€” Raise x to power n โšก
Donโ€™t multiply x again &amp;amp; again! Use Fast Power:
๐Ÿ‘‰ If n even: xโฟ = (xยฒ)โฟโ„ยฒ
๐Ÿ‘‰ If n odd: xโฟ = x ร— (xยฒ)โฟโ„ยฒ
๐Ÿ‘‰ If n &amp;lt; 0: flip โ†’ x = 1/x, n = -n
โฑ Time: O(log n)
๐Ÿ“ฆ Space: O(1)
#SmartMath #BinaryPower #LeetCodeMedium

I started my weekend by solving a Leetcode medium level problem. Leetcode 1493 - Longest subarray of ones after deleting one element - Solution in Go. #Leetcode #TwoPointers #LeetcodeMedium #Go #Golang

the_code_club's tweet image. I started my weekend by solving a Leetcode medium level problem.

Leetcode 1493 - Longest subarray of ones after deleting one element - Solution in Go.

#Leetcode #TwoPointers #LeetcodeMedium #Go #Golang

๐Ÿšง #63 Unique Paths II Robot in mร—n grid w/ obstacles (1). Only moves โฌ‡๏ธโžก๏ธ. Find unique paths to bottom-right! ๐Ÿ“ฆ Ex: [[0,0,0],[0,1,0],[0,0,0]] โ†’ 2 โœ… ๐Ÿ“Š DP: dp[i][j]=0 if obs; else dp[i-1][j]+dp[i][j-1] โฑ O(mn), ๐Ÿ—‚ O(mn) #UniquePathsII #DP #LeetCodeMedium #InterviewReady

eninjain's tweet image. ๐Ÿšง #63 Unique Paths II
Robot in mร—n grid w/ obstacles (1). Only moves โฌ‡๏ธโžก๏ธ.
Find unique paths to bottom-right!
๐Ÿ“ฆ Ex: [[0,0,0],[0,1,0],[0,0,0]] โ†’ 2 โœ…
๐Ÿ“Š DP:
 dp[i][j]=0 if obs; else dp[i-1][j]+dp[i][j-1]
โฑ O(mn), ๐Ÿ—‚ O(mn)

#UniquePathsII #DP #LeetCodeMedium #InterviewReady

๐Ÿ”ข #57 Insert Interval Youโ€™ve got sorted, non-overlapping intervals & a new one barging in ๐Ÿ›ฌ ๐Ÿ’ฅ Slide it in! โœ… Add before it ๐Ÿ”„ Merge overlaps ๐Ÿš€ Drop it in ๐Ÿ“ฅ Add the rest! Ex: [[1,3],[6,9]], [2,5] โ†’ [[1,5],[6,9]] โฑ๏ธ O(n) | ๐Ÿ“ฆ O(n) #SmartMerge #GreedyMoves #LeetCodeMedium

eninjain's tweet image. ๐Ÿ”ข #57 Insert Interval
Youโ€™ve got sorted, non-overlapping intervals &amp;amp; a new one barging in ๐Ÿ›ฌ
๐Ÿ’ฅ Slide it in!
โœ… Add before it
๐Ÿ”„ Merge overlaps
๐Ÿš€ Drop it in
๐Ÿ“ฅ Add the rest!
Ex: [[1,3],[6,9]], [2,5] โ†’ [[1,5],[6,9]]
โฑ๏ธ O(n) | ๐Ÿ“ฆ O(n)
#SmartMerge #GreedyMoves #LeetCodeMedium

I spent some time to understand mathematical proof from editorial solution, this solution depends more on mathematical proof than coding skills for sure. Leetcode 179: Largest Number: Solution in Go. #LeetcodeMedium #DSA #Golang #Go

the_code_club's tweet image. I spent some time to understand mathematical proof from editorial solution, this solution depends more on mathematical proof than coding skills for sure.

Leetcode 179: Largest Number: Solution in Go.

#LeetcodeMedium #DSA #Golang #Go

๐Ÿ”ข #77 Combinations Given n & k, return all k-number combinations from 1..n. โšก Use backtracking: build recursively, track current combo, add when size=k. ๐Ÿ“ฆ Example: n=4, k=2 โ†’ [ [1,2],[1,3],[1,4],[2,3],[2,4],[3,4] ] #Combinations #Backtracking #LeetCodeMedium

eninjain's tweet image. ๐Ÿ”ข #77 Combinations
Given n &amp;amp; k, return all k-number combinations from 1..n.
โšก Use backtracking: build recursively, track current combo, add when size=k.
๐Ÿ“ฆ Example: n=4, k=2 โ†’ [ [1,2],[1,3],[1,4],[2,3],[2,4],[3,4] ]
#Combinations #Backtracking #LeetCodeMedium

Fraction to Recurring Decimal | LeetCode 166 | Sep Day 24 | Hashing + String โœ…โœŒ๏ธ youtu.be/7juLYhaCBQs . . . . . . . . . . . . #leetcodesolution #leetcodedaily #leetcodemedium #faangprep #startup #dsa #hashmap #math #codeexplain #coderlife #codingchallenge #prepareinterview

_CodeWithUs_'s tweet image. Fraction to Recurring Decimal | LeetCode 166 | Sep Day 24 | Hashing + String  โœ…โœŒ๏ธ
youtu.be/7juLYhaCBQs
.
.
.
.
.
.
.
.
.
.
.
.
#leetcodesolution #leetcodedaily  #leetcodemedium
#faangprep  #startup #dsa #hashmap #math #codeexplain #coderlife #codingchallenge #prepareinterview

Implement Router | LeetCode 3508 | Sep Day 20 | Binary Search + Hashing โœ…โœŒ๏ธ youtu.be/4AJLtXZchfs?siโ€ฆ . . . . . . . . . . . . . #leetcodesolution #leetcodedaily #leetcodemedium #faangprep #startup #dsa #queue #hashmap #codeexplain #coderlife #codingchallenge #leetcode3508

_CodeWithUs_'s tweet image. Implement Router | LeetCode 3508 | Sep Day 20 | Binary Search + Hashing โœ…โœŒ๏ธ
youtu.be/4AJLtXZchfs?siโ€ฆ
.
.
.
.
.
.
.
.
.
.
.
.
.
#leetcodesolution #leetcodedaily  #leetcodemedium #faangprep  #startup #dsa #queue #hashmap #codeexplain #coderlife #codingchallenge #leetcode3508

99. Recover Binary Search Tree Leetcode problem solution using Golang. #LeetcodeMedium #BinarySearchTree

the_code_club's tweet image. 99. Recover Binary Search Tree

Leetcode problem solution using Golang.

#LeetcodeMedium #BinarySearchTree

โ€œMarked the numbers, flipped the signs, and caught the sneaky duplicates. Clean, fast, and memory-wise. โšก #LeetCodeMedium #JavaMastery #CodeSmartโ€

Abhinandan34988's tweet image. โ€œMarked the numbers, flipped the signs, and caught the sneaky duplicates. Clean, fast, and memory-wise. โšก #LeetCodeMedium #JavaMastery #CodeSmartโ€

452. Minimum Number of Arrows to Burst Balloons. Leetcode problem solution in Golang. #Leetcode150 #LeetcodeMedium #Golang

the_code_club's tweet image. 452. Minimum Number of Arrows to Burst Balloons.

Leetcode problem solution in Golang.

#Leetcode150 #LeetcodeMedium #Golang

Keine Ergebnisse fรผr "#leetcodemedium"

#73 Set Matrix Zeroes ๐ŸŸฆ Given an mร—n matrix, if an element = 0 โ†’ set its row & col to 0. โšก In-place, O(1) space: use 1st row/col as markers โ†’ mark, zero out, then fix 1st row/col. ๐Ÿ“Š Time: O(mn) | Space: O(1) #SetMatrixZeroes #LeetCodeMedium #InterviewReady

eninjain's tweet image. #73 Set Matrix Zeroes ๐ŸŸฆ
Given an mร—n matrix, if an element = 0 โ†’ set its row &amp;amp; col to 0.
โšก In-place, O(1) space: use 1st row/col as markers โ†’ mark, zero out, then fix 1st row/col.
๐Ÿ“Š Time: O(mn) | Space: O(1)
#SetMatrixZeroes #LeetCodeMedium #InterviewReady

๐Ÿ›ค๏ธ #64 Minimum Path Sum Find the min path sum in an mร—n grid, moving only โฌ‡๏ธ or โžก๏ธ. Ex: [[1,3,1],[1,5,1],[4,2,1]] โ†’ 7 โœ… (path: 1โ†’3โ†’1โ†’1โ†’1) ๐Ÿ’ก DP trick: dp[i][j] = grid[i][j] + min(top,left) โฑ O(mn), ๐Ÿ—‚ O(mn)/O(n). #DynamicProgramming #LeetCodeMedium #InterviewReady

eninjain's tweet image. ๐Ÿ›ค๏ธ #64 Minimum Path Sum
Find the min path sum in an mร—n grid, moving only โฌ‡๏ธ or โžก๏ธ.
Ex: [[1,3,1],[1,5,1],[4,2,1]] โ†’ 7 โœ… (path: 1โ†’3โ†’1โ†’1โ†’1)
๐Ÿ’ก DP trick: dp[i][j] = grid[i][j] + min(top,left)
โฑ O(mn), ๐Ÿ—‚ O(mn)/O(n).
#DynamicProgramming #LeetCodeMedium #InterviewReady

452. Minimum Number of Arrows to Burst Balloons. Leetcode problem solution in Golang. #Leetcode150 #LeetcodeMedium #Golang

the_code_club's tweet image. 452. Minimum Number of Arrows to Burst Balloons.

Leetcode problem solution in Golang.

#Leetcode150 #LeetcodeMedium #Golang

โ€œMarked the numbers, flipped the signs, and caught the sneaky duplicates. Clean, fast, and memory-wise. โšก #LeetCodeMedium #JavaMastery #CodeSmartโ€

Abhinandan34988's tweet image. โ€œMarked the numbers, flipped the signs, and caught the sneaky duplicates. Clean, fast, and memory-wise. โšก #LeetCodeMedium #JavaMastery #CodeSmartโ€

๐Ÿšง #63 Unique Paths II Robot in mร—n grid w/ obstacles (1). Only moves โฌ‡๏ธโžก๏ธ. Find unique paths to bottom-right! ๐Ÿ“ฆ Ex: [[0,0,0],[0,1,0],[0,0,0]] โ†’ 2 โœ… ๐Ÿ“Š DP: dp[i][j]=0 if obs; else dp[i-1][j]+dp[i][j-1] โฑ O(mn), ๐Ÿ—‚ O(mn) #UniquePathsII #DP #LeetCodeMedium #InterviewReady

eninjain's tweet image. ๐Ÿšง #63 Unique Paths II
Robot in mร—n grid w/ obstacles (1). Only moves โฌ‡๏ธโžก๏ธ.
Find unique paths to bottom-right!
๐Ÿ“ฆ Ex: [[0,0,0],[0,1,0],[0,0,0]] โ†’ 2 โœ…
๐Ÿ“Š DP:
 dp[i][j]=0 if obs; else dp[i-1][j]+dp[i][j-1]
โฑ O(mn), ๐Ÿ—‚ O(mn)

#UniquePathsII #DP #LeetCodeMedium #InterviewReady

155. Min Stack - Leetcode solution in Golang. #LeetcodeMedium #Stack

the_code_club's tweet image. 155. Min Stack - Leetcode solution in Golang.

#LeetcodeMedium #Stack

๐Ÿ›ฃ๏ธ #71 Simplify Path Simplify a Unix-style absolute path. / separates dirs, . = current, .. = parent. Remove extra slashes. Ex: "/home/"โ†’"/home", "/a/./b/../../c/"โ†’"/c" โœ… โฑ O(n) | ๐Ÿ“ฆ O(n) #SimplifyPath #StringParsing #LeetCodeMedium #UnixPaths #EdgeCases

eninjain's tweet image. ๐Ÿ›ฃ๏ธ #71 Simplify Path
Simplify a Unix-style absolute path. / separates dirs, . = current, .. = parent. Remove extra slashes.
Ex: &quot;/home/&quot;โ†’&quot;/home&quot;, &quot;/a/./b/../../c/&quot;โ†’&quot;/c&quot; โœ…
โฑ O(n) | ๐Ÿ“ฆ O(n)
#SimplifyPath #StringParsing #LeetCodeMedium #UnixPaths #EdgeCases

Leetcode 739 โ€” Daily Temperatures: Solution in Golang. #LeetcodeMedium #Stack

the_code_club's tweet image. Leetcode 739 โ€” Daily Temperatures: Solution in Golang.
#LeetcodeMedium #Stack

Solved another problem which is based on sliding window technique. Leetcode 1004 - Max Consecutive Ones III Check reply to view my solution. #LeetcodeMedium #SlidingWindow #Arrays

the_code_club's tweet image. Solved another problem which is based on sliding window technique. 

Leetcode 1004 - Max Consecutive Ones III

Check reply to view my solution.

#LeetcodeMedium #SlidingWindow #Arrays

735. Asteroid Collision - Leetcode problem solution in #Golang. #LeetcodeMedium #Stack

the_code_club's tweet image. 735. Asteroid Collision - Leetcode problem solution in #Golang.

#LeetcodeMedium #Stack

๐Ÿ”ข #81 Search in Rotated Sorted Array Find a target in a sorted array rotated at a pivot. ๐ŸŽฏ Use modified binary search: check which half is sorted, then narrow search. Input: [4,5,6,7,0,1,2], target=0 โ†’ Output: 4 โœ… O(log n) time, O(1) space. #BinarySearch #LeetCodeMedium

eninjain's tweet image. ๐Ÿ”ข #81 Search in Rotated Sorted Array
Find a target in a sorted array rotated at a pivot. ๐ŸŽฏ Use modified binary search: check which half is sorted, then narrow search.

Input: [4,5,6,7,0,1,2], target=0 โ†’ Output: 4 โœ…
O(log n) time, O(1) space.
#BinarySearch #LeetCodeMedium

Stop using arrays to solve linked list leetcode problems. Leetcode 92 - Reverse Linked List 2 - C++ #LeetcodeMedium #LinkedList

the_code_club's tweet image. Stop using arrays to solve linked list leetcode problems.

Leetcode 92 - Reverse Linked List 2 - C++

#LeetcodeMedium #LinkedList

๐Ÿ”ข #50 Pow(x, n) โ€” Raise x to power n โšก Donโ€™t multiply x again & again! Use Fast Power: ๐Ÿ‘‰ If n even: xโฟ = (xยฒ)โฟโ„ยฒ ๐Ÿ‘‰ If n odd: xโฟ = x ร— (xยฒ)โฟโ„ยฒ ๐Ÿ‘‰ If n < 0: flip โ†’ x = 1/x, n = -n โฑ Time: O(log n) ๐Ÿ“ฆ Space: O(1) #SmartMath #BinaryPower #LeetCodeMedium

eninjain's tweet image. ๐Ÿ”ข #50 Pow(x, n) โ€” Raise x to power n โšก
Donโ€™t multiply x again &amp;amp; again! Use Fast Power:
๐Ÿ‘‰ If n even: xโฟ = (xยฒ)โฟโ„ยฒ
๐Ÿ‘‰ If n odd: xโฟ = x ร— (xยฒ)โฟโ„ยฒ
๐Ÿ‘‰ If n &amp;lt; 0: flip โ†’ x = 1/x, n = -n
โฑ Time: O(log n)
๐Ÿ“ฆ Space: O(1)
#SmartMath #BinaryPower #LeetCodeMedium

I think this is the first medium level problem which I have solved using Go ๐Ÿฅณ Leetcode 2095 - Delete middle node of linked list - Solution in Go. #LeetcodeMedium #LinkedList #100DaysOfCode

the_code_club's tweet image. I think this is the first medium level problem which I have solved using Go ๐Ÿฅณ

Leetcode 2095 - Delete middle node of linked list - Solution in Go.

#LeetcodeMedium #LinkedList #100DaysOfCode

๐Ÿ”ข #57 Insert Interval Youโ€™ve got sorted, non-overlapping intervals & a new one barging in ๐Ÿ›ฌ ๐Ÿ’ฅ Slide it in! โœ… Add before it ๐Ÿ”„ Merge overlaps ๐Ÿš€ Drop it in ๐Ÿ“ฅ Add the rest! Ex: [[1,3],[6,9]], [2,5] โ†’ [[1,5],[6,9]] โฑ๏ธ O(n) | ๐Ÿ“ฆ O(n) #SmartMerge #GreedyMoves #LeetCodeMedium

eninjain's tweet image. ๐Ÿ”ข #57 Insert Interval
Youโ€™ve got sorted, non-overlapping intervals &amp;amp; a new one barging in ๐Ÿ›ฌ
๐Ÿ’ฅ Slide it in!
โœ… Add before it
๐Ÿ”„ Merge overlaps
๐Ÿš€ Drop it in
๐Ÿ“ฅ Add the rest!
Ex: [[1,3],[6,9]], [2,5] โ†’ [[1,5],[6,9]]
โฑ๏ธ O(n) | ๐Ÿ“ฆ O(n)
#SmartMerge #GreedyMoves #LeetCodeMedium

I started my weekend by solving a Leetcode medium level problem. Leetcode 1493 - Longest subarray of ones after deleting one element - Solution in Go. #Leetcode #TwoPointers #LeetcodeMedium #Go #Golang

the_code_club's tweet image. I started my weekend by solving a Leetcode medium level problem.

Leetcode 1493 - Longest subarray of ones after deleting one element - Solution in Go.

#Leetcode #TwoPointers #LeetcodeMedium #Go #Golang

I spent some time to understand mathematical proof from editorial solution, this solution depends more on mathematical proof than coding skills for sure. Leetcode 179: Largest Number: Solution in Go. #LeetcodeMedium #DSA #Golang #Go

the_code_club's tweet image. I spent some time to understand mathematical proof from editorial solution, this solution depends more on mathematical proof than coding skills for sure.

Leetcode 179: Largest Number: Solution in Go.

#LeetcodeMedium #DSA #Golang #Go

#74 Search 2D Matrix Matrix sorted row-wise & first of each row > last of prev. Find target โœ… โšก Trick: treat it as 1D โ†’ Binary Search! row=mid/n, col=mid%n โฑ O(log(mn)) | ๐Ÿ’พ O(1) #Search2DMatrix #BinarySearch #LeetCodeMedium #InterviewReady

eninjain's tweet image. #74 Search 2D Matrix
Matrix sorted row-wise &amp;amp; first of each row &amp;gt; last of prev. Find target โœ…
โšก Trick: treat it as 1D โ†’ Binary Search! row=mid/n, col=mid%n
โฑ O(log(mn)) | ๐Ÿ’พ O(1)
#Search2DMatrix #BinarySearch #LeetCodeMedium #InterviewReady

This problem can be easily solved if you are familiar with sliding window technique. Leetcode 1456 - Maximum number of vowels in a substring of given length - Leetcode Medium. Problem link - leetcode.com/problems/maximโ€ฆ #Leetcode #LeetcodeMedium #Arrays

the_code_club's tweet image. This problem can be easily solved if you are familiar with sliding window technique.

Leetcode 1456 - Maximum number of vowels in a substring of given length - Leetcode Medium.

Problem link - leetcode.com/problems/maximโ€ฆ

#Leetcode #LeetcodeMedium #Arrays

Loading...

Something went wrong.


Something went wrong.


United States Trends