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-23
Rotate Array
Leetcode #189
Algorithm: two pointer, Math
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 #facebook5 #amazon10 #microsoft7 #google3 #apple3
Rotate Array
Leetcode #189
Algorithm: two pointer, Math
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 #facebook5 #amazon10 #microsoft7 #google3 #apple3
LeetCode
Rotate Array - LeetCode
Can you solve this real interview question? Rotate Array - Given an integer array nums, rotate the array to the right by k steps, where k is non-negative.
Example 1:
Input: nums = [1,2,3,4,5,6,7], k = 3
Output: [5,6,7,1,2,3,4]
Explanation:
rotate 1β¦
Example 1:
Input: nums = [1,2,3,4,5,6,7], k = 3
Output: [5,6,7,1,2,3,4]
Explanation:
rotate 1β¦
Day-23(Solution)
Rotate Array
Leetcode #581
Algorithm: two pointer, Math
Solution: https://gist.github.com/lavakush-m-tiwari/cff4aee4b1597d73aadbf202aac2907b
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 #facebook5 #amazon10 #microsoft7 #google3 #apple3
Rotate Array
Leetcode #581
Algorithm: two pointer, Math
Solution: https://gist.github.com/lavakush-m-tiwari/cff4aee4b1597d73aadbf202aac2907b
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 #facebook5 #amazon10 #microsoft7 #google3 #apple3
LeetCode
Rotate Array - LeetCode
Can you solve this real interview question? Rotate Array - Given an integer array nums, rotate the array to the right by k steps, where k is non-negative.
Example 1:
Input: nums = [1,2,3,4,5,6,7], k = 3
Output: [5,6,7,1,2,3,4]
Explanation:
rotate 1β¦
Example 1:
Input: nums = [1,2,3,4,5,6,7], k = 3
Output: [5,6,7,1,2,3,4]
Explanation:
rotate 1β¦
Day-24
Single Element in a Sorted Array
Leetcode #540
Algorithm: Binary Search
Related Video : https://www.youtube.com/watch?v=krgK0UlfNYY
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 #facebook7 #amazon10 #microsoft6 #google3
Single Element in a Sorted Array
Leetcode #540
Algorithm: Binary Search
Related Video : https://www.youtube.com/watch?v=krgK0UlfNYY
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 #facebook7 #amazon10 #microsoft6 #google3
LeetCode
Single Element in a Sorted Array - LeetCode
Can you solve this real interview question? Single Element in a Sorted Array - You are given a sorted array consisting of only integers where every element appears exactly twice, except for one element which appears exactly once.
Return the single elementβ¦
Return the single elementβ¦
Day-24(Solution):
Single Element in a Sorted Array
Leetcode #540
Algorithm: Binary Search
Solution: https://gist.github.com/lavakush-m-tiwari/5806075b49b5bf121bca7872b4d2d927
Related Video : https://www.youtube.com/watch?v=krgK0UlfNYY
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 #facebook7 #amazon10 #microsoft6 #google3
Single Element in a Sorted Array
Leetcode #540
Algorithm: Binary Search
Solution: https://gist.github.com/lavakush-m-tiwari/5806075b49b5bf121bca7872b4d2d927
Related Video : https://www.youtube.com/watch?v=krgK0UlfNYY
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 #facebook7 #amazon10 #microsoft6 #google3
LeetCode
Single Element in a Sorted Array - LeetCode
Can you solve this real interview question? Single Element in a Sorted Array - You are given a sorted array consisting of only integers where every element appears exactly twice, except for one element which appears exactly once.
Return the single elementβ¦
Return the single elementβ¦
Day-25
Find All Duplicates in an Array
Leetcode #442
Algorithm: HashTable
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 #adobe2 #amazon5#microsoft2 #google3
Find All Duplicates in an Array
Leetcode #442
Algorithm: HashTable
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 #adobe2 #amazon5#microsoft2 #google3
LeetCode
Find All Duplicates in an Array - LeetCode
Can you solve this real interview question? Find All Duplicates in an Array - Given an integer array nums of length n where all the integers of nums are in the range [1, n] and each integer appears at most twice, return an array of all the integers that appearsβ¦
Day-25(Solution):
Find All Duplicates in an Array
Leetcode #540
Algorithm: HashTable
Solution: https://gist.github.com/lavakush-m-tiwari/9b5df48120019aa713b0d19c00919c2e
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 #adobe2 #amazon5 #microsoft2 #google3
Find All Duplicates in an Array
Leetcode #540
Algorithm: HashTable
Solution: https://gist.github.com/lavakush-m-tiwari/9b5df48120019aa713b0d19c00919c2e
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 #adobe2 #amazon5 #microsoft2 #google3
LeetCode
Find All Duplicates in an Array - LeetCode
Can you solve this real interview question? Find All Duplicates in an Array - Given an integer array nums of length n where all the integers of nums are in the range [1, n] and each integer appears at most twice, return an array of all the integers that appearsβ¦
Day-1
Valid Parentheses
Leetcode #20
Algorithm: Stack
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 #facebook21 #amazon35 #google3 #microsoft21 #linkedin34
Valid Parentheses
Leetcode #20
Algorithm: Stack
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 #facebook21 #amazon35 #google3 #microsoft21 #linkedin34
LeetCode
Valid Parentheses - LeetCode
Can you solve this real interview question? Valid Parentheses - Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
An input string is valid if:
1. Open brackets must be closed by theβ¦
An input string is valid if:
1. Open brackets must be closed by theβ¦
Day-1(Solution)
Valid Parentheses
Leetcode #20
Algorithm: Stack
Solution: https://gist.github.com/lavakush-m-tiwari/8d0e927c70035628d3c6d6394c77bfd5
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 #facebook21 #amazon35 #google3 #microsoft21 #linkedin34
Valid Parentheses
Leetcode #20
Algorithm: Stack
Solution: https://gist.github.com/lavakush-m-tiwari/8d0e927c70035628d3c6d6394c77bfd5
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 #facebook21 #amazon35 #google3 #microsoft21 #linkedin34
LeetCode
Valid Parentheses - LeetCode
Can you solve this real interview question? Valid Parentheses - Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
An input string is valid if:
1. Open brackets must be closed by theβ¦
An input string is valid if:
1. Open brackets must be closed by theβ¦
Day-1
Middle of the Linked List
#876
Algorithm: linkedList, two pointer
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 #Facebook2 #amazon4 #google3 #microsoft2 #apple4
Middle of the Linked List
#876
Algorithm: linkedList, two pointer
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 #Facebook2 #amazon4 #google3 #microsoft2 #apple4
Day-1 (Solution))
Middle of the Linked List
#876
Algorithm: linkedList, two pointer
Solution: https://gist.github.com/lavakush-m-tiwari/7ecc88a12491a449f887b5f751b4fd4a
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 #Facebook2 #amazon4 #google3 #microsoft2 #apple4
Middle of the Linked List
#876
Algorithm: linkedList, two pointer
Solution: https://gist.github.com/lavakush-m-tiwari/7ecc88a12491a449f887b5f751b4fd4a
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 #Facebook2 #amazon4 #google3 #microsoft2 #apple4
LeetCode
Middle of the Linked List - LeetCode
Can you solve this real interview question? Middle of the Linked List - Given the head of a singly linked list, return the middle node of the linked list.
If there are two middle nodes, return the second middle node.
Example 1:
[https://assets.leetβ¦
If there are two middle nodes, return the second middle node.
Example 1:
[https://assets.leetβ¦
Day-5
Reverse Linked List II
#92
Algorithm: linkedList
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 #amazon5 #microsoft3 #apple2 #facebook8 #google3
Reverse Linked List II
#92
Algorithm: linkedList
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 #amazon5 #microsoft3 #apple2 #facebook8 #google3
LeetCode
Reverse Linked List II - LeetCode
Can you solve this real interview question? Reverse Linked List II - Given the head of a singly linked list and two integers left and right where left <= right, reverse the nodes of the list from position left to position right, and return the reversed list.β¦
Day-5 (Solution)
Reverse Linked List II
#92
Algorithm: linkedList, two pointer
Solution: https://gist.github.com/lavakush-m-tiwari/6e735181779b6ec01e1339f163596630
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 #amazon5 #microsoft3 #apple2 #facebook8 #google3
Reverse Linked List II
#92
Algorithm: linkedList, two pointer
Solution: https://gist.github.com/lavakush-m-tiwari/6e735181779b6ec01e1339f163596630
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 #amazon5 #microsoft3 #apple2 #facebook8 #google3
LeetCode
Reverse Linked List II - LeetCode
Can you solve this real interview question? Reverse Linked List II - Given the head of a singly linked list and two integers left and right where left <= right, reverse the nodes of the list from position left to position right, and return the reversed list.β¦
Day-8
Copy List with Random Pointer
#138
Algorithm: LinkedList, HashTable
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 #amazon15 #microsoft14 #google3 #facebook66
Copy List with Random Pointer
#138
Algorithm: LinkedList, HashTable
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 #amazon15 #microsoft14 #google3 #facebook66
LeetCode
Copy List with Random Pointer - LeetCode
Can you solve this real interview question? Copy List with Random Pointer - A linked list of length n is given such that each node contains an additional random pointer, which could point to any node in the list, or null.
Construct a deep copy [https://β¦
Construct a deep copy [https://β¦
Day-8 (Solution)
Copy List with Random Pointer
#138
Algorithm: LinkedList, HashTable
Solution: https://gist.github.com/lavakush-m-tiwari/0ed0f4ca704415a65d4243f96b20f846
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 #amazon15 #microsoft14 #google3 #facebook66
Copy List with Random Pointer
#138
Algorithm: LinkedList, HashTable
Solution: https://gist.github.com/lavakush-m-tiwari/0ed0f4ca704415a65d4243f96b20f846
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 #amazon15 #microsoft14 #google3 #facebook66
LeetCode
Copy List with Random Pointer - LeetCode
Can you solve this real interview question? Copy List with Random Pointer - A linked list of length n is given such that each node contains an additional random pointer, which could point to any node in the list, or null.
Construct a deep copy [https://β¦
Construct a deep copy [https://β¦