Day-28: (Solution)
Maximal Network Rank
Leetcode #1615
Algorithm: Simple Graph
Solution CODE: https://gist.github.com/SuryaPratapK/607a4ca794fa607efa9a0ac68bb92ca3
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#30DaysOfGraph #techdose #interviewpreparation #graphs #dsa
Maximal Network Rank
Leetcode #1615
Algorithm: Simple Graph
Solution CODE: https://gist.github.com/SuryaPratapK/607a4ca794fa607efa9a0ac68bb92ca3
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#30DaysOfGraph #techdose #interviewpreparation #graphs #dsa
LeetCode
Maximal Network Rank - LeetCode
Can you solve this real interview question? Maximal Network Rank - There is an infrastructure of n cities with some number of roads connecting these cities. Each roads[i] = [ai, bi] indicates that there is a bidirectional road between cities ai and bi.
Theβ¦
Theβ¦
Day-29:
Minimum Number of Vertices to Reach All Nodes
Leetcode #1557
Algorithm: Simple Graph
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#30DaysOfGraph #techdose #interviewpreparation #graphs #dsa
Minimum Number of Vertices to Reach All Nodes
Leetcode #1557
Algorithm: Simple Graph
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#30DaysOfGraph #techdose #interviewpreparation #graphs #dsa
LeetCode
Minimum Number of Vertices to Reach All Nodes - LeetCode
Can you solve this real interview question? Minimum Number of Vertices to Reach All Nodes - Given a directed acyclic graph, with n vertices numbered from 0 to n-1, and an array edges where edges[i] = [fromi, toi] represents a directed edge from node fromi toβ¦
Day-1:
Container With Most Water
Leetcode #11
Algorithm: Two Pointer, Greedy
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon21 #microsoft11 #google7 #facebook3
Container With Most Water
Leetcode #11
Algorithm: Two Pointer, Greedy
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon21 #microsoft11 #google7 #facebook3
LeetCode
Container With Most Water - LeetCode
Can you solve this real interview question? Container With Most Water - You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i, height[i]).
Find two lines that togetherβ¦
Find two lines that togetherβ¦
Day-1: (Solution)
Container With Most Water
Leetcode #11
Algorithm: Two pointer, Greedy
Solution CODE:
https://gist.github.com/lavakush-m-tiwari/5472e7cb54482bd3f5217a36fda83359
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon21 #microsoft11 #google7 #facebook3
Container With Most Water
Leetcode #11
Algorithm: Two pointer, Greedy
Solution CODE:
https://gist.github.com/lavakush-m-tiwari/5472e7cb54482bd3f5217a36fda83359
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon21 #microsoft11 #google7 #facebook3
Day-2:
3Sum Closest
Leetcode #16
Algorithm: Two pointer, Sorting
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon10 #microsoft3 #google4 #facebook23
3Sum Closest
Leetcode #16
Algorithm: Two pointer, Sorting
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon10 #microsoft3 #google4 #facebook23
LeetCode
3Sum Closest - LeetCode
Can you solve this real interview question? 3Sum Closest - Given an integer array nums of length n and an integer target, find three integers in nums such that the sum is closest to target.
Return the sum of the three integers.
You may assume that eachβ¦
Return the sum of the three integers.
You may assume that eachβ¦
Day-2(Solution):
3Sum Closest
Leetcode #16
Algorithm: Two pointer, Sorting
Solution Code :
https://gist.github.com/lavakush-m-tiwari/64a71c847ccbd9560b20a0f862187f49
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon10 #microsoft3 #google4 #facebook23
3Sum Closest
Leetcode #16
Algorithm: Two pointer, Sorting
Solution Code :
https://gist.github.com/lavakush-m-tiwari/64a71c847ccbd9560b20a0f862187f49
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon10 #microsoft3 #google4 #facebook23
Day-3:
Find the Duplicate Number
Leetcode #287
Algorithm: Two pointer, bit manipulation, Binary Search
Related Video: https://www.youtube.com/watch?v=dfIqLxAf-8s&ab_channel=TECHDOSE
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon8 #microsoft5 #google4 #facebook3
Find the Duplicate Number
Leetcode #287
Algorithm: Two pointer, bit manipulation, Binary Search
Related Video: https://www.youtube.com/watch?v=dfIqLxAf-8s&ab_channel=TECHDOSE
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon8 #microsoft5 #google4 #facebook3
LeetCode
Find the Duplicate Number - LeetCode
Can you solve this real interview question? Find the Duplicate Number - Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive.
There is only one repeated number in nums, return this repeated number.β¦
There is only one repeated number in nums, return this repeated number.β¦
Day-3(Solution):
Find the Duplicate Number
Leetcode #287
Algorithm: Two pointer, bit manipulation, Binary Search
Related Video: https://www.youtube.com/watch?v=dfIqLxAf-8s&ab_channel=TECHDOSE
Solution: https://gist.github.com/lavakush-m-tiwari/627c6270f1095bbbf005a2f83d8b00ad
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon8 #microsoft5 #google4 #facebook3
Find the Duplicate Number
Leetcode #287
Algorithm: Two pointer, bit manipulation, Binary Search
Related Video: https://www.youtube.com/watch?v=dfIqLxAf-8s&ab_channel=TECHDOSE
Solution: https://gist.github.com/lavakush-m-tiwari/627c6270f1095bbbf005a2f83d8b00ad
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon8 #microsoft5 #google4 #facebook3
Day-4:
Minimum Size Subarray Sum
Leetcode #209
Algorithm: Binary Search, Sliding Window, Prefix Sum
Related Video: https://www.youtube.com/watch?v=S6Xg-0uaODc
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon4 #google2 #facebook4
Minimum Size Subarray Sum
Leetcode #209
Algorithm: Binary Search, Sliding Window, Prefix Sum
Related Video: https://www.youtube.com/watch?v=S6Xg-0uaODc
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon4 #google2 #facebook4
Day-4(Solution):
Minimum Size Subarray Sum
Leetcode #209
Algorithm: Binary Search, Sliding Window, Prefix Sum
Related Video: https://www.youtube.com/watch?v=S6Xg-0uaODc
Solution: https://gist.github.com/lavakush-m-tiwari/021f98e89a22503feb864bbe8f19ea3e
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon4 #google2 #facebook4
Minimum Size Subarray Sum
Leetcode #209
Algorithm: Binary Search, Sliding Window, Prefix Sum
Related Video: https://www.youtube.com/watch?v=S6Xg-0uaODc
Solution: https://gist.github.com/lavakush-m-tiwari/021f98e89a22503feb864bbe8f19ea3e
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon4 #google2 #facebook4
Day-5:
Merge Sorted Array
Leetcode #88
Algorithm: Two pointer, Sorting
Related Video: https://www.youtube.com/watch?v=DeLnQpIxo-A&list=PLEJXowNB4kPxQIN2dCUAnQ_92HIziG4x6&index=25
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon8 #microsoft6 #facebook79
Merge Sorted Array
Leetcode #88
Algorithm: Two pointer, Sorting
Related Video: https://www.youtube.com/watch?v=DeLnQpIxo-A&list=PLEJXowNB4kPxQIN2dCUAnQ_92HIziG4x6&index=25
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon8 #microsoft6 #facebook79
Day-5(Solution):
Merge Sorted Array
Leetcode #88
Algorithm: Two pointer, Sorting
Related Video: https://www.youtube.com/watch?v=DeLnQpIxo-A&list=PLEJXowNB4kPxQIN2dCUAnQ_92HIziG4x6&index=25
Solution: https://gist.github.com/lavakush-m-tiwari/f8e2f473a77a0b9aff38a31793c21e7e
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon8 #microsoft6 #facebook79
Merge Sorted Array
Leetcode #88
Algorithm: Two pointer, Sorting
Related Video: https://www.youtube.com/watch?v=DeLnQpIxo-A&list=PLEJXowNB4kPxQIN2dCUAnQ_92HIziG4x6&index=25
Solution: https://gist.github.com/lavakush-m-tiwari/f8e2f473a77a0b9aff38a31793c21e7e
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon8 #microsoft6 #facebook79
Day-6:
Merge Intervals
Leetcode #56
Algorithm: Sorting, Greedy
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon119 #microsoft27 #google18 #facebook90
Merge Intervals
Leetcode #56
Algorithm: Sorting, Greedy
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon119 #microsoft27 #google18 #facebook90
LeetCode
Merge Intervals - LeetCode
Can you solve this real interview question? Merge Intervals - Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals that cover all the intervals in the input.β¦
Day-6(Solution):
Merge Intervals
Leetcode #56
Algorithm: Sorting, Greedy
Solution: https://gist.github.com/lavakush-m-tiwari/d03acb4d50995283cab447198559184d
Subscribe our Channel : https://www.youtube.com/c/TECHDOSE4u
Follow on LinkedIn: https://www.linkedin.com/company/tech-dose
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon119 #microsoft27 #google18 #facebook90
Merge Intervals
Leetcode #56
Algorithm: Sorting, Greedy
Solution: https://gist.github.com/lavakush-m-tiwari/d03acb4d50995283cab447198559184d
Subscribe our Channel : https://www.youtube.com/c/TECHDOSE4u
Follow on LinkedIn: https://www.linkedin.com/company/tech-dose
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon119 #microsoft27 #google18 #facebook90
Day-7
Maximum Subarray
Leetcode #53
Algorithm: Divide and Conquer, Kadane's Algorithm
Related Video: https://www.youtube.com/watch?v=YxuK6A3SvTs
Subscribe our Channel : https://www.youtube.com/c/TECHDOSE4u
Follow on Linkedin: https://www.linkedin.com/company/tech-dose
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #google10 #amazon43 #microsoft12 #facebook8 #linkedin38 #apple17
Maximum Subarray
Leetcode #53
Algorithm: Divide and Conquer, Kadane's Algorithm
Related Video: https://www.youtube.com/watch?v=YxuK6A3SvTs
Subscribe our Channel : https://www.youtube.com/c/TECHDOSE4u
Follow on Linkedin: https://www.linkedin.com/company/tech-dose
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #google10 #amazon43 #microsoft12 #facebook8 #linkedin38 #apple17
Day-7 (Solution):
Maximum Subarray
Leetcode #53
Algorithm: Divide and Conquer, Kadane's Algorithm
Related Video: https://www.youtube.com/watch?v=YxuK6A3SvTs
Solution: https://gist.github.com/lavakush-m-tiwari/b7ad03bddd47b7c5cf70b2c691016109
Subscribe our Channel : https://www.youtube.com/c/TECHDOSE4u
Follow on Linkedin: https://www.linkedin.com/company/tech-dose
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #google10 #amazon43 #microsoft12 #facebook8 #linkedin38 #apple17
Maximum Subarray
Leetcode #53
Algorithm: Divide and Conquer, Kadane's Algorithm
Related Video: https://www.youtube.com/watch?v=YxuK6A3SvTs
Solution: https://gist.github.com/lavakush-m-tiwari/b7ad03bddd47b7c5cf70b2c691016109
Subscribe our Channel : https://www.youtube.com/c/TECHDOSE4u
Follow on Linkedin: https://www.linkedin.com/company/tech-dose
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #google10 #amazon43 #microsoft12 #facebook8 #linkedin38 #apple17
Day-8
Search Insert Position
Leetcode #35
Algorithm: Binary Search
Related Video: https://www.youtube.com/watch?v=0A40XJH_VvE
Subscribe our Channel : https://www.youtube.com/c/TECHDOSE4u
Follow on Linkedin: https://www.linkedin.com/company/tech-dose
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #google6 #amazon4 #apple5
Search Insert Position
Leetcode #35
Algorithm: Binary Search
Related Video: https://www.youtube.com/watch?v=0A40XJH_VvE
Subscribe our Channel : https://www.youtube.com/c/TECHDOSE4u
Follow on Linkedin: https://www.linkedin.com/company/tech-dose
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #google6 #amazon4 #apple5
Day-8(Solution):
Search Insert Position
Leetcode #55
Algorithm: Binary Search
Related Video: https://www.youtube.com/watch?v=0A40XJH_VvE
Solution: https://gist.github.com/lavakush-m-tiwari/8c9d94233c21d00b7dd945284d7cb081
Subscribe our Channel : https://www.youtube.com/c/TECHDOSE4u
Follow on Linkedin: https://www.linkedin.com/company/tech-dose
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #google6 #amazon4 #apple5
Search Insert Position
Leetcode #55
Algorithm: Binary Search
Related Video: https://www.youtube.com/watch?v=0A40XJH_VvE
Solution: https://gist.github.com/lavakush-m-tiwari/8c9d94233c21d00b7dd945284d7cb081
Subscribe our Channel : https://www.youtube.com/c/TECHDOSE4u
Follow on Linkedin: https://www.linkedin.com/company/tech-dose
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #google6 #amazon4 #apple5
Day-9
Least Number of Unique Integers after K Removals
Leetcode #1481
Algorithm: Hash Table, Counting, Sorting
Subscribe our Channel : https://www.youtube.com/c/TECHDOSE4u
Follow on Linkedin: https://www.linkedin.com/company/tech-dose
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon13
Least Number of Unique Integers after K Removals
Leetcode #1481
Algorithm: Hash Table, Counting, Sorting
Subscribe our Channel : https://www.youtube.com/c/TECHDOSE4u
Follow on Linkedin: https://www.linkedin.com/company/tech-dose
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon13
LeetCode
Least Number of Unique Integers after K Removals - LeetCode
Can you solve this real interview question? Least Number of Unique Integers after K Removals - Given an array of integers arr and an integer k. Find the least number of unique integers after removing exactly k elements.
Example 1:
Input: arr = [5,5β¦
Example 1:
Input: arr = [5,5β¦
Day-9(Solution):
Least Number of Unique Integers after K Removals
Leetcode #1481
Algorithm: Hash Table, Counting, Sorting
Solution: https://gist.github.com/lavakush-m-tiwari/ce5e5682f4370e12b330131185b1db2a
Subscribe our Channel : https://www.youtube.com/c/TECHDOSE4u
Follow on Linkedin: https://www.linkedin.com/company/tech-dose
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon13
Least Number of Unique Integers after K Removals
Leetcode #1481
Algorithm: Hash Table, Counting, Sorting
Solution: https://gist.github.com/lavakush-m-tiwari/ce5e5682f4370e12b330131185b1db2a
Subscribe our Channel : https://www.youtube.com/c/TECHDOSE4u
Follow on Linkedin: https://www.linkedin.com/company/tech-dose
Please try the problem yourself and watch the video to learn the Algorithm π
Please SHARE this initiative with your friends as well π
#techdose #28DaysOfArray #interviewpreparation #arrays #dsa #MaxFreqLast6Months #amazon13