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-26
Snapshot Array
Leetcode #1146
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 #amazon3 #microsoft2 #google39
Snapshot Array
Leetcode #1146
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 #amazon3 #microsoft2 #google39
LeetCode
Snapshot Array - LeetCode
Can you solve this real interview question? Snapshot Array - Implement a SnapshotArray that supports the following interface:
* SnapshotArray(int length) initializes an array-like data structure with the given length. Initially, each element equals 0.
β¦
* SnapshotArray(int length) initializes an array-like data structure with the given length. Initially, each element equals 0.
β¦
Hello everyone :)
Due to some unexpected events we missed some sessions.
Today we will start Stack and continue for this month.
Keep coding :)
Due to some unexpected events we missed some sessions.
Today we will start Stack and continue for this month.
Keep coding :)
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-2
Next Greater Element I
Leetcode #496
Algorithm: Stack, HashTable, Monotonic Stack
Related Video: https://www.youtube.com/watch?v=sDKpIO2HGq0
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 #facebook9 #amazon8 #microsoft2 #hotstar2
Next Greater Element I
Leetcode #496
Algorithm: Stack, HashTable, Monotonic Stack
Related Video: https://www.youtube.com/watch?v=sDKpIO2HGq0
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 #facebook9 #amazon8 #microsoft2 #hotstar2
LeetCode
Next Greater Element I - LeetCode
Can you solve this real interview question? Next Greater Element I - The next greater element of some element x in an array is the first greater element that is to the right of x in the same array.
You are given two distinct 0-indexed integer arrays nums1β¦
You are given two distinct 0-indexed integer arrays nums1β¦
Day-2(Solution)
Next Greater Element I
Leetcode #20
Algorithm: Stack
Solution: https://gist.github.com/lavakush-m-tiwari/ae64d96579eb57f3ffb09d11d5356b18
Related Video: https://www.youtube.com/watch?v=sDKpIO2HGq0
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 #facebook9 #amazon8 #microsoft2 #hotstar2
Next Greater Element I
Leetcode #20
Algorithm: Stack
Solution: https://gist.github.com/lavakush-m-tiwari/ae64d96579eb57f3ffb09d11d5356b18
Related Video: https://www.youtube.com/watch?v=sDKpIO2HGq0
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 #facebook9 #amazon8 #microsoft2 #hotstar2
LeetCode
Next Greater Element I - LeetCode
Can you solve this real interview question? Next Greater Element I - The next greater element of some element x in an array is the first greater element that is to the right of x in the same array.
You are given two distinct 0-indexed integer arrays nums1β¦
You are given two distinct 0-indexed integer arrays nums1β¦
Day-3
Min Stack
Leetcode #155
Algorithm: Stack
Related Video: https://www.youtube.com/watch?v=gd9xEAnxXzc
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 #facebook6 #amazon21 #google4 #microsoft6 #apple2
Min Stack
Leetcode #155
Algorithm: Stack
Related Video: https://www.youtube.com/watch?v=gd9xEAnxXzc
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 #facebook6 #amazon21 #google4 #microsoft6 #apple2
LeetCode
Min Stack - LeetCode
Can you solve this real interview question? Min Stack - Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
Implement the MinStack class:
* MinStack() initializes the stack object.
* void push(int val) pushesβ¦
Implement the MinStack class:
* MinStack() initializes the stack object.
* void push(int val) pushesβ¦
Techdose
Day-3 Min Stack Leetcode #155 Algorithm: Stack Related Video: https://www.youtube.com/watch?v=gd9xEAnxXzc Subscribe our Channel : https://www.youtube.com/c/TECHDOSE4u Follow on Linkedin: https://www.linkedin.com/company/tech-dose Please try the problemβ¦
Day-3(Solution)
Min Stack
Leetcode #155
Algorithm: Stack
Solution: https://gist.github.com/lavakush-m-tiwari/80c83568dd4f877f3650a266aa7ad92f
Related Video: https://www.youtube.com/watch?v=gd9xEAnxXzc
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 #facebook6 #amazon21 #google4 #microsoft6 #apple2
Min Stack
Leetcode #155
Algorithm: Stack
Solution: https://gist.github.com/lavakush-m-tiwari/80c83568dd4f877f3650a266aa7ad92f
Related Video: https://www.youtube.com/watch?v=gd9xEAnxXzc
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 #facebook6 #amazon21 #google4 #microsoft6 #apple2
LeetCode
Min Stack - LeetCode
Can you solve this real interview question? Min Stack - Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
Implement the MinStack class:
* MinStack() initializes the stack object.
* void push(int val) pushesβ¦
Implement the MinStack class:
* MinStack() initializes the stack object.
* void push(int val) pushesβ¦
Day-4
First Unique Character in a String
Leetcode #387
Algorithm: Stack
Related Video: https://www.youtube.com/watch?v=KnWqCfIfHX0
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 #facebook12 #amazon38 #google4 #microsoft7 #apple6
First Unique Character in a String
Leetcode #387
Algorithm: Stack
Related Video: https://www.youtube.com/watch?v=KnWqCfIfHX0
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 #facebook12 #amazon38 #google4 #microsoft7 #apple6
LeetCode
First Unique Character in a String - LeetCode
Can you solve this real interview question? First Unique Character in a String - Given a string s, find the first non-repeating character in it and return its index. If it does not exist, return -1.
Example 1:
Input: s = "leetcode"
Output: 0
Explanation:β¦
Example 1:
Input: s = "leetcode"
Output: 0
Explanation:β¦
Day-4 (Solution)
First Unique Character in a String
Leetcode #387
Algorithm: Stack
Solution: https://gist.github.com/lavakush-m-tiwari/137cfbe73d678c860e216487cbfb12f2
Related Video: https://www.youtube.com/watch?v=KnWqCfIfHX0
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 #facebook12 #amazon38 #google4 #microsoft7 #apple6
First Unique Character in a String
Leetcode #387
Algorithm: Stack
Solution: https://gist.github.com/lavakush-m-tiwari/137cfbe73d678c860e216487cbfb12f2
Related Video: https://www.youtube.com/watch?v=KnWqCfIfHX0
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 #facebook12 #amazon38 #google4 #microsoft7 #apple6
LeetCode
First Unique Character in a String - LeetCode
Can you solve this real interview question? First Unique Character in a String - Given a string s, find the first non-repeating character in it and return its index. If it does not exist, return -1.
Example 1:
Input: s = "leetcode"
Output: 0
Explanation:β¦
Example 1:
Input: s = "leetcode"
Output: 0
Explanation:β¦
Day-5
Remove K Digits
Leetcode #402
Algorithm: Stack, Greedy, Monotonic Stack
Related Video: https://www.youtube.com/watch?v=3QJzHqNAEXs
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 #amazon6 #google2 #microsoft3 #adobe3
Remove K Digits
Leetcode #402
Algorithm: Stack, Greedy, Monotonic Stack
Related Video: https://www.youtube.com/watch?v=3QJzHqNAEXs
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 #amazon6 #google2 #microsoft3 #adobe3
LeetCode
Remove K Digits - LeetCode
Can you solve this real interview question? Remove K Digits - Given string num representing a non-negative integer num, and an integer k, return the smallest possible integer after removing k digits from num.
Example 1:
Input: num = "1432219", k = 3β¦
Example 1:
Input: num = "1432219", k = 3β¦
Day-5 (Solution)
Remove K Digits
Leetcode #402
Algorithm: Stack, Greedy, Monotonic Stack
Solution: https://gist.github.com/lavakush-m-tiwari/70f4b730498bb9fc39fafb83449fd261
Related Video: https://www.youtube.com/watch?v=3QJzHqNAEXs
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 #amazon6 #google2 #microsoft3 #adobe3
Remove K Digits
Leetcode #402
Algorithm: Stack, Greedy, Monotonic Stack
Solution: https://gist.github.com/lavakush-m-tiwari/70f4b730498bb9fc39fafb83449fd261
Related Video: https://www.youtube.com/watch?v=3QJzHqNAEXs
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 #amazon6 #google2 #microsoft3 #adobe3
LeetCode
Remove K Digits - LeetCode
Can you solve this real interview question? Remove K Digits - Given string num representing a non-negative integer num, and an integer k, return the smallest possible integer after removing k digits from num.
Example 1:
Input: num = "1432219", k = 3β¦
Example 1:
Input: num = "1432219", k = 3β¦
Day-6
Implement Queue using Stacks
Leetcode #232
Algorithm: Stack
Related Video: https://www.youtube.com/watch?v=xSa0sD-RqMg
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 #amazon9 #microsoft6 #goldmansachs2
Implement Queue using Stacks
Leetcode #232
Algorithm: Stack
Related Video: https://www.youtube.com/watch?v=xSa0sD-RqMg
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 #amazon9 #microsoft6 #goldmansachs2
LeetCode
Implement Queue using Stacks - LeetCode
Can you solve this real interview question? Implement Queue using Stacks - Implement a first in first out (FIFO) queue using only two stacks. The implemented queue should support all the functions of a normal queue (push, peek, pop, and empty).
Implementβ¦
Implementβ¦
Hello everyone. Due to non-availability, we couldn't post problems. We are resuming today with the same topic.
Practice well :)
Practice well :)
Day-6(Solution):
Implement Queue using Stacks
Leetcode #232
Algorithm: Stack
Solution: https://gist.github.com/lavakush-m-tiwari/f8ad3f00eb062fa24f96cb4a4b6d6e03
Related Video: https://www.youtube.com/watch?v=xSa0sD-RqMg
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 #amazon9 #microsoft6 #goldmansachs2
Implement Queue using Stacks
Leetcode #232
Algorithm: Stack
Solution: https://gist.github.com/lavakush-m-tiwari/f8ad3f00eb062fa24f96cb4a4b6d6e03
Related Video: https://www.youtube.com/watch?v=xSa0sD-RqMg
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 #amazon9 #microsoft6 #goldmansachs2
LeetCode
Implement Queue using Stacks - LeetCode
Can you solve this real interview question? Implement Queue using Stacks - Implement a first in first out (FIFO) queue using only two stacks. The implemented queue should support all the functions of a normal queue (push, peek, pop, and empty).
Implementβ¦
Implementβ¦
Day-7
Simplify Path
#121
Algorithm: Stack, String
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 #facebook93 #google6 #amazon5
Simplify Path
#121
Algorithm: Stack, String
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 #facebook93 #google6 #amazon5
LeetCode
Simplify Path - LeetCode
Can you solve this real interview question? Simplify Path - You are given an absolute path for a Unix-style file system, which always begins with a slash '/'. Your task is to transform this absolute path into its simplified canonical path.
The rules of aβ¦
The rules of aβ¦
Day-7 (Solution)
Simplify Path
#121
Algorithm: Stack, String
Solution: https://gist.github.com/lavakush-m-tiwari/bb2a6f9310f0364084b2e8fb744f7bef
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 #facebook93 #google6 #amazon5
Simplify Path
#121
Algorithm: Stack, String
Solution: https://gist.github.com/lavakush-m-tiwari/bb2a6f9310f0364084b2e8fb744f7bef
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 #facebook93 #google6 #amazon5
LeetCode
Simplify Path - LeetCode
Can you solve this real interview question? Simplify Path - You are given an absolute path for a Unix-style file system, which always begins with a slash '/'. Your task is to transform this absolute path into its simplified canonical path.
The rules of aβ¦
The rules of aβ¦
Day-8
Car Fleet
#853
Algorithm: Stack, 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 #google6
Car Fleet
#853
Algorithm: Stack, 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 #google6
LeetCode
Car Fleet - LeetCode
Can you solve this real interview question? Car Fleet - There are n cars at given miles away from the starting mile 0, traveling to reach the mile target.
You are given two integer arrays position and speed, both of length n, where position[i] is the startingβ¦
You are given two integer arrays position and speed, both of length n, where position[i] is the startingβ¦