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
Day-10
Search in Rotated Sorted Array
Leetcode #33
Algorithm: Binary Search
Related Video: https://www.youtube.com/watch?v=oTfPJKGEHcc
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 #amazon23 #facebook25 #microsoft26 #linkedin22 #google4
Search in Rotated Sorted Array
Leetcode #33
Algorithm: Binary Search
Related Video: https://www.youtube.com/watch?v=oTfPJKGEHcc
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 #amazon23 #facebook25 #microsoft26 #linkedin22 #google4
LeetCode
Search in Rotated Sorted Array - LeetCode
Can you solve this real interview question? Search in Rotated Sorted Array - There is an integer array nums sorted in ascending order (with distinct values).
Prior to being passed to your function, nums is possibly rotated at an unknown pivot index k (1β¦
Prior to being passed to your function, nums is possibly rotated at an unknown pivot index k (1β¦
DSA LIVE course starting on 19th February.
1. US Timezone (7 AM PST)
2. India TImezone (1:30 PM IST)
Whatsapp: +91 8918633037
DSA High Level Plan (Coursework)
β’ Time complexity analysis
β’ Math Algos
β’ Bit manipulation
β’ Array
β’ Stack
β’ Monotonic stack and patterns
β’ Queue
β’ Hash
β’ Heap
β’ String Algorithms
β’ Greedy Algo
β’ Linked List
β’ Backtracking
β’ Trees
β’ AVL
β’ Dynamic Programming
β’ Graph algorithms
β’ Trie
β’ Segment tree
β’ Reservoir Sampling
β’ Geometric Algorithms
β’ Convex Hull
Course Features:-
β’ Guarantees to maximize interview result in minimum time
β’ Guaranteed Understanding of Concepts
β’ Interview preparation in 3 months guaranteed
β’ Timing: Sat,Sun
β’ Assignment problems : 200+ handpicked problems most frequent interview problems across all DSA topics (All problems will be discussed in class after DSA topics)
β’ LIVE classes (with doubt clearing)
β’ All lectures are recorded
β’ Lecture validity: 1 year from start of class
1. US Timezone (7 AM PST)
2. India TImezone (1:30 PM IST)
Whatsapp: +91 8918633037
DSA High Level Plan (Coursework)
β’ Time complexity analysis
β’ Math Algos
β’ Bit manipulation
β’ Array
β’ Stack
β’ Monotonic stack and patterns
β’ Queue
β’ Hash
β’ Heap
β’ String Algorithms
β’ Greedy Algo
β’ Linked List
β’ Backtracking
β’ Trees
β’ AVL
β’ Dynamic Programming
β’ Graph algorithms
β’ Trie
β’ Segment tree
β’ Reservoir Sampling
β’ Geometric Algorithms
β’ Convex Hull
Course Features:-
β’ Guarantees to maximize interview result in minimum time
β’ Guaranteed Understanding of Concepts
β’ Interview preparation in 3 months guaranteed
β’ Timing: Sat,Sun
β’ Assignment problems : 200+ handpicked problems most frequent interview problems across all DSA topics (All problems will be discussed in class after DSA topics)
β’ LIVE classes (with doubt clearing)
β’ All lectures are recorded
β’ Lecture validity: 1 year from start of class
Day-10(Solution):
Search in Rotated Sorted Array
Leetcode #33
Algorithm: Binary Search
Solution: https://gist.github.com/lavakush-m-tiwari/3b08d42985eae721f2f10c41443d93cb
Related Video: https://www.youtube.com/watch?v=oTfPJKGEHcc
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
Search in Rotated Sorted Array
Leetcode #33
Algorithm: Binary Search
Solution: https://gist.github.com/lavakush-m-tiwari/3b08d42985eae721f2f10c41443d93cb
Related Video: https://www.youtube.com/watch?v=oTfPJKGEHcc
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
Search in Rotated Sorted Array - LeetCode
Can you solve this real interview question? Search in Rotated Sorted Array - There is an integer array nums sorted in ascending order (with distinct values).
Prior to being passed to your function, nums is possibly rotated at an unknown pivot index k (1β¦
Prior to being passed to your function, nums is possibly rotated at an unknown pivot index k (1β¦
Day-10
Bus Routes
Leetcode #815
Algorithm: Hash Table
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 #uber91 #amazon7 #google5
Bus Routes
Leetcode #815
Algorithm: Hash Table
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 #uber91 #amazon7 #google5
LeetCode
Bus Routes - LeetCode
Can you solve this real interview question? Bus Routes - You are given an array routes representing bus routes where routes[i] is a bus route that the ith bus repeats forever.
* For example, if routes[0] = [1, 5, 7], this means that the 0th bus travelsβ¦
* For example, if routes[0] = [1, 5, 7], this means that the 0th bus travelsβ¦
Day-10(Solution)
Bus Routes
Leetcode #815
Algorithm: Hash Table
Solution: https://gist.github.com/lavakush-m-tiwari/206c4edd6bace93e9c2e4c34c62c443f
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 #uber91 #amazon7 #google5
Bus Routes
Leetcode #815
Algorithm: Hash Table
Solution: https://gist.github.com/lavakush-m-tiwari/206c4edd6bace93e9c2e4c34c62c443f
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 #uber91 #amazon7 #google5
Day-11
Top K Frequent Elements
Leetcode #347
Algorithm: Hash Table, Divide and Conquer, Sorting, Counting, Bucket Sort, Quick Select
Related Video: https://www.youtube.com/watch?v=BP7GCALO2v8
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 #facebook84 #amazon21 #microsoft9 #google3
Top K Frequent Elements
Leetcode #347
Algorithm: Hash Table, Divide and Conquer, Sorting, Counting, Bucket Sort, Quick Select
Related Video: https://www.youtube.com/watch?v=BP7GCALO2v8
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 #facebook84 #amazon21 #microsoft9 #google3
LeetCode
Top K Frequent Elements - LeetCode
Can you solve this real interview question? Top K Frequent Elements - Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order.
Example 1:
Input: nums = [1,1,1,2,2,3], k = 2
Output: [1β¦
Example 1:
Input: nums = [1,1,1,2,2,3], k = 2
Output: [1β¦
Day-11(Solution):
Top K Frequent Elements
Leetcode #347
Algorithm: Hash Table, Divide and Conquer, Sorting, Counting, Bucket Sort, Quick Select
Solution: https://gist.github.com/lavakush-m-tiwari/ab6aa6b9c3104c5a6039caae8239c5e3
Related Video: https://www.youtube.com/watch?v=BP7GCALO2v8
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 #facebook84 #amazon21 #microsoft9 #google3
Top K Frequent Elements
Leetcode #347
Algorithm: Hash Table, Divide and Conquer, Sorting, Counting, Bucket Sort, Quick Select
Solution: https://gist.github.com/lavakush-m-tiwari/ab6aa6b9c3104c5a6039caae8239c5e3
Related Video: https://www.youtube.com/watch?v=BP7GCALO2v8
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 #facebook84 #amazon21 #microsoft9 #google3
Day-12
Median of Two Sorted Arrays
Leetcode #4
Algorithm: Binary Search, Divide and Conquer
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 #amazon35 #microsoft17 #google14 #facebook9 #apple7
Median of Two Sorted Arrays
Leetcode #4
Algorithm: Binary Search, Divide and Conquer
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 #amazon35 #microsoft17 #google14 #facebook9 #apple7
LeetCode
Median of Two Sorted Arrays - LeetCode
Can you solve this real interview question? Median of Two Sorted Arrays - Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays.
The overall run time complexity should be O(log (m+n)).
Exampleβ¦
The overall run time complexity should be O(log (m+n)).
Exampleβ¦
Day-12(Solution)
Median of Two Sorted Arrays
Leetcode #4
Algorithm: Binary Search, Divide and Conquer
Solution: https://gist.github.com/lavakush-m-tiwari/0830f1decabace8bb8c4ab2eb81729e4
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 #amazon35 #microsoft17 #google14 #facebook9 #apple7
Median of Two Sorted Arrays
Leetcode #4
Algorithm: Binary Search, Divide and Conquer
Solution: https://gist.github.com/lavakush-m-tiwari/0830f1decabace8bb8c4ab2eb81729e4
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 #amazon35 #microsoft17 #google14 #facebook9 #apple7
LeetCode
Median of Two Sorted Arrays - LeetCode
Can you solve this real interview question? Median of Two Sorted Arrays - Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays.
The overall run time complexity should be O(log (m+n)).
Exampleβ¦
The overall run time complexity should be O(log (m+n)).
Exampleβ¦
Day-13
Subarray Sum Equals K
Leetcode #560
Algorithm: Binary Search, Divide and Conquer
Related Video: https://www.youtube.com/watch?v=HbbYPQc-Oo4
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 #facebook157 #amazon18 #google9 #microsoft9
Subarray Sum Equals K
Leetcode #560
Algorithm: Binary Search, Divide and Conquer
Related Video: https://www.youtube.com/watch?v=HbbYPQc-Oo4
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 #facebook157 #amazon18 #google9 #microsoft9
LeetCode
Subarray Sum Equals K - LeetCode
Can you solve this real interview question? Subarray Sum Equals K - Given an array of integers nums and an integer k, return the total number of subarrays whose sum equals to k.
A subarray is a contiguous non-empty sequence of elements within an array.
β¦
A subarray is a contiguous non-empty sequence of elements within an array.
β¦
Day-13(Solution):
Subarray Sum Equals K
Leetcode #560
Algorithm: Binary Search, Divide and Conquer
Solution: https://gist.github.com/lavakush-m-tiwari/f842ac136b45619e9b2d8fb09a41b44f
Related Video: https://www.youtube.com/watch?v=HbbYPQc-Oo4
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 #facebook157 #amazon18 #google9 #microsoft9
Subarray Sum Equals K
Leetcode #560
Algorithm: Binary Search, Divide and Conquer
Solution: https://gist.github.com/lavakush-m-tiwari/f842ac136b45619e9b2d8fb09a41b44f
Related Video: https://www.youtube.com/watch?v=HbbYPQc-Oo4
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 #facebook157 #amazon18 #google9 #microsoft9
LeetCode
Subarray Sum Equals K - LeetCode
Can you solve this real interview question? Subarray Sum Equals K - Given an array of integers nums and an integer k, return the total number of subarrays whose sum equals to k.
A subarray is a contiguous non-empty sequence of elements within an array.
β¦
A subarray is a contiguous non-empty sequence of elements within an array.
β¦
Day-14
Insert Delete GetRandom O(1)
Leetcode #380
Algorithm: Hash Table, Design, Randomized
Related Video: https://www.youtube.com/watch?v=WtkwD7ikxfg
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 #facebook15 #amazon18 #google8 #microsoft11 #linkedin12
Insert Delete GetRandom O(1)
Leetcode #380
Algorithm: Hash Table, Design, Randomized
Related Video: https://www.youtube.com/watch?v=WtkwD7ikxfg
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 #facebook15 #amazon18 #google8 #microsoft11 #linkedin12
LeetCode
Insert Delete GetRandom O(1) - LeetCode
Can you solve this real interview question? Insert Delete GetRandom O(1) - Implement the RandomizedSet class:
* RandomizedSet() Initializes the RandomizedSet object.
* bool insert(int val) Inserts an item val into the set if not present. Returns true ifβ¦
* RandomizedSet() Initializes the RandomizedSet object.
* bool insert(int val) Inserts an item val into the set if not present. Returns true ifβ¦
Day-14(Solution):
Insert Delete GetRandom O(1)
Leetcode #380
Algorithm: Binary Search, Divide and Conquer
Solution: https://gist.github.com/lavakush-m-tiwari/090b61231d5b6ad12f88d6c40e57afaa
Related Video: https://www.youtube.com/watch?v=WtkwD7ikxfg
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 #facebook15 #amazon18 #google8 #microsoft11 #linkedin12
Insert Delete GetRandom O(1)
Leetcode #380
Algorithm: Binary Search, Divide and Conquer
Solution: https://gist.github.com/lavakush-m-tiwari/090b61231d5b6ad12f88d6c40e57afaa
Related Video: https://www.youtube.com/watch?v=WtkwD7ikxfg
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 #facebook15 #amazon18 #google8 #microsoft11 #linkedin12
LeetCode
Insert Delete GetRandom O(1) - LeetCode
Can you solve this real interview question? Insert Delete GetRandom O(1) - Implement the RandomizedSet class:
* RandomizedSet() Initializes the RandomizedSet object.
* bool insert(int val) Inserts an item val into the set if not present. Returns true ifβ¦
* RandomizedSet() Initializes the RandomizedSet object.
* bool insert(int val) Inserts an item val into the set if not present. Returns true ifβ¦
Day-15
Find Peak Element
Leetcode #162
Algorithm: Binary Search
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 #facebook71 #amazon9 #google4 #microsoft4 #uber5
Find Peak Element
Leetcode #162
Algorithm: Binary Search
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 #facebook71 #amazon9 #google4 #microsoft4 #uber5
LeetCode
Find Peak Element - LeetCode
Can you solve this real interview question? Find Peak Element - A peak element is an element that is strictly greater than its neighbors.
Given a 0-indexed integer array nums, find a peak element, and return its index. If the array contains multiple peaksβ¦
Given a 0-indexed integer array nums, find a peak element, and return its index. If the array contains multiple peaksβ¦
Day-15(Solution):
Find Peak Element
Leetcode #162
Algorithm: Binary Search
Solution: https://gist.github.com/lavakush-m-tiwari/f74ef2082e34055d2a04cbd0f06c26aa
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 #facebook71 #amazon9 #google4 #microsoft4 #uber5
Find Peak Element
Leetcode #162
Algorithm: Binary Search
Solution: https://gist.github.com/lavakush-m-tiwari/f74ef2082e34055d2a04cbd0f06c26aa
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 #facebook71 #amazon9 #google4 #microsoft4 #uber5
LeetCode
Find Peak Element - LeetCode
Can you solve this real interview question? Find Peak Element - A peak element is an element that is strictly greater than its neighbors.
Given a 0-indexed integer array nums, find a peak element, and return its index. If the array contains multiple peaksβ¦
Given a 0-indexed integer array nums, find a peak element, and return its index. If the array contains multiple peaksβ¦
Day-16
Contains Duplicate
Leetcode #217
Algorithm: Hash Table, 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 #facebook3 #amazon19 #google8 #microsoft4 #uber2 #apple2
Contains Duplicate
Leetcode #217
Algorithm: Hash Table, 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 #facebook3 #amazon19 #google8 #microsoft4 #uber2 #apple2
LeetCode
Contains Duplicate - LeetCode
Can you solve this real interview question? Contains Duplicate - Given an integer array nums, return true if any value appears at least twice in the array, and return false if every element is distinct.
Example 1:
Input: nums = [1,2,3,1]
Output: trueβ¦
Example 1:
Input: nums = [1,2,3,1]
Output: trueβ¦
Day-16(Soultion)
Contains Duplicate
Leetcode #217
Algorithm: Hash Table, Sorting
Subscribe our Channel : https://www.youtube.com/c/TECHDOSE4u
Solution: https://gist.github.com/lavakush-m-tiwari/c32c703efd24113d8d2948731d562c91
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 #facebook3 #amazon19 #google8 #microsoft4 #uber2 #apple2
Contains Duplicate
Leetcode #217
Algorithm: Hash Table, Sorting
Subscribe our Channel : https://www.youtube.com/c/TECHDOSE4u
Solution: https://gist.github.com/lavakush-m-tiwari/c32c703efd24113d8d2948731d562c91
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 #facebook3 #amazon19 #google8 #microsoft4 #uber2 #apple2
LeetCode
Contains Duplicate - LeetCode
Can you solve this real interview question? Contains Duplicate - Given an integer array nums, return true if any value appears at least twice in the array, and return false if every element is distinct.
Example 1:
Input: nums = [1,2,3,1]
Output: trueβ¦
Example 1:
Input: nums = [1,2,3,1]
Output: trueβ¦
Day-17
Can Place Flowers
Leetcode #605
Algorithm: Greedy
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 #facebook15 #amazon4 #linkedin25
Can Place Flowers
Leetcode #605
Algorithm: Greedy
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 #facebook15 #amazon4 #linkedin25
LeetCode
Can Place Flowers - LeetCode
Can you solve this real interview question? Can Place Flowers - You have a long flowerbed in which some of the plots are planted, and some are not. However, flowers cannot be planted in adjacent plots.
Given an integer array flowerbed containing 0's andβ¦
Given an integer array flowerbed containing 0's andβ¦