Longest Divisible Subset:
https://youtu.be/q8UcbJDHp3M
https://youtu.be/q8UcbJDHp3M
YouTube
Largest Divisible Subset | Leetcode 368
This video explains Largest Divisible Subset using the most optimal LIS algorithm.
----------------------------------------------------------------------------------------------------------------------------------------------------------------
π£ JOIN ourβ¦
----------------------------------------------------------------------------------------------------------------------------------------------------------------
π£ JOIN ourβ¦
Today's video:
Partition equal subset sum: https://youtu.be/obhWqDfzwQQ
Partition equal subset sum: https://youtu.be/obhWqDfzwQQ
YouTube
Partition equal subset sum | Equal sum partition | Dynamic Programming | Leetcode #416
This video explains a very important 01 knapsack dynamic programming problem which is the equal sum partition problem.In this problem, given a set, we are required to divide it into 2 subsets such that their sum are equal.This is similar to 01 knapsack problemβ¦
Main Problem: https://www.youtube.com/watch?v=34l1kTIQCIA
YouTube
subset sum problem dynamic programming | backtracking sum of subsets
This is a video lecture which explains subset sum problem solving using both backtracking and dynamic programming methods. This explanation is a little long but once you watch it, you won't ever regret about having watched such a long video. Backtrackingβ¦
Count the Number of Powerful Integers:
https://youtu.be/pPm3Pf3oh5Q
https://youtu.be/pPm3Pf3oh5Q
YouTube
Count the Number of Powerful Integers | Leetcode 2999
This video explains Count the Number of Powerful Integers using the most optimal digit dynamic programming algorithm.
----------------------------------------------------------------------------------------------------------------------------------------β¦
----------------------------------------------------------------------------------------------------------------------------------------β¦
No Video today (EASY problem)
2843. Count Symmetric Integers
CPP reference code:-
class Solution {
bool checkSymmetric(string no){
int size = no.size();
if(size&1)
return false;
int left_sum = 0;
int right_sum = 0;
for(int i=0;i<(size+1)/2;++i){
left_sum += no[i];
right_sum += no[size-i-1];
}
return left_sum==right_sum;
}
public:
int countSymmetricIntegers(int low, int high) {
int count = 0;
for(int no=low;no<=high;++no){
if(checkSymmetric(to_string(no)))
count++;
}
return count;
}
};
2843. Count Symmetric Integers
CPP reference code:-
class Solution {
bool checkSymmetric(string no){
int size = no.size();
if(size&1)
return false;
int left_sum = 0;
int right_sum = 0;
for(int i=0;i<(size+1)/2;++i){
left_sum += no[i];
right_sum += no[size-i-1];
}
return left_sum==right_sum;
}
public:
int countSymmetricIntegers(int low, int high) {
int count = 0;
for(int no=low;no<=high;++no){
if(checkSymmetric(to_string(no)))
count++;
}
return count;
}
};
Find the Count of Good Integers:
https://youtu.be/dsHmPTHuIkA
https://youtu.be/dsHmPTHuIkA
YouTube
Find the Count of Good Integers | Leetcode 3272
This video explains Find the Count of Good Integers using the most optimal math permutation and recursion DFS algorithm.
-------------------------------------------------------------------------------------------------------------------------------------β¦
-------------------------------------------------------------------------------------------------------------------------------------β¦
Count Good Numbers:
https://youtu.be/ZhLyJpBVU1s
https://youtu.be/ZhLyJpBVU1s
YouTube
Count Good Numbers | Leetcode 1922
This video explains Count Good Numbers using the most optimal Binary Exponentiation math algorithm.
----------------------------------------------------------------------------------------------------------------------------------------------------------β¦
----------------------------------------------------------------------------------------------------------------------------------------------------------β¦
Interview Preparation strategy for META
1. Talk directly with Software Engineer at META
2. Get the study plan
3. Learn the challenges she faced and the effort she put on a daily basis
4. Know the preparation timeline and what worked for her
5. Get to know the difficulty level in the entire interview process for both DSA & System Design
6. Validate your approach for any future interview offer
7. Get to know the common interview preparation pitfalls for META
8. Know how the interview at META is different from other MAANG companies
9. Ask me anything is included with the session
LIVE interactive session
Limited seats only (registration will close soon)
Date: 16th April
TIME: 8 PM IST / 7:30 AM PST
Duration: 1 hour approx
Fee: 99 INR / 10 USD
CONTACT US (Whatsapp): +91 8918633037
1. Talk directly with Software Engineer at META
2. Get the study plan
3. Learn the challenges she faced and the effort she put on a daily basis
4. Know the preparation timeline and what worked for her
5. Get to know the difficulty level in the entire interview process for both DSA & System Design
6. Validate your approach for any future interview offer
7. Get to know the common interview preparation pitfalls for META
8. Know how the interview at META is different from other MAANG companies
9. Ask me anything is included with the session
LIVE interactive session
Limited seats only (registration will close soon)
Date: 16th April
TIME: 8 PM IST / 7:30 AM PST
Duration: 1 hour approx
Fee: 99 INR / 10 USD
CONTACT US (Whatsapp): +91 8918633037
Count Good Triplets in an Array | Leetcode 2179 :
https://youtu.be/QBhfiHswL1Y
https://youtu.be/QBhfiHswL1Y
YouTube
Count Good Triplets in an Array | Leetcode 2179 | Segment Tree
This video explains Count Good Triplets in an Array using the most optimal segment tree hashmap approach.
----------------------------------------------------------------------------------------------------------------------------------------------------β¦
----------------------------------------------------------------------------------------------------------------------------------------------------β¦
Count and Say:
https://youtu.be/htSwmFGdFUI
https://youtu.be/htSwmFGdFUI
YouTube
Count and Say | Leetcode 38
This video explains Count and Say using the simulation approach.
----------------------------------------------------------------------------------------------------------------------------------------------------------------
π£ JOIN our ππππ π’π§πππ«π―π’ππ° ππ«ππ’π§π’π§π β¦
----------------------------------------------------------------------------------------------------------------------------------------------------------------
π£ JOIN our ππππ π’π§πππ«π―π’ππ° ππ«ππ’π§π’π§π β¦
Count the Number of Fair Pairs:
https://youtu.be/xe6y4aEfvDw
https://youtu.be/xe6y4aEfvDw
YouTube
Count the Number of Fair Pairs | Leetcode 2563
This video explains count the number of fair pairs using the most optimal binary search technique using lower bound and upper bound.
-------------------------------------------------------------------------------------------------------------------------β¦
-------------------------------------------------------------------------------------------------------------------------β¦
Rabbits in Forest:
https://youtu.be/Do2coBlSIFo
https://youtu.be/Do2coBlSIFo
YouTube
Rabbits in Forest | Leetcode 781
This video explains Rabbits in Forest using the most optimal group counting approach.
----------------------------------------------------------------------------------------------------------------------------------------------------------------
π£ JOIN ourβ¦
----------------------------------------------------------------------------------------------------------------------------------------------------------------
π£ JOIN ourβ¦
Count the Hidden Sequences:
https://youtu.be/z0cdra6jHs4
https://youtu.be/z0cdra6jHs4
YouTube
Count the Hidden Sequences | Leetcode 2145
This video explains Count the Hidden Sequences using the most optimal single parse counting solution.
--------------------------------------------------------------------------------------------------------------------------------------------------------β¦
--------------------------------------------------------------------------------------------------------------------------------------------------------β¦
Count the Number of Ideal Arrays:
https://youtu.be/FGf2EPyxcWg
https://youtu.be/FGf2EPyxcWg
YouTube
Count the Number of Ideal Arrays | Leetcode 2338
This video explains Count the Number of Ideal Arrays
----------------------------------------------------------------------------------------------------------------------------------------------------------------
π£ JOIN our ππππ π’π§πππ«π―π’ππ° ππ«ππ’π§π’π§π π©π«π¨π π«ππ¦β¦
----------------------------------------------------------------------------------------------------------------------------------------------------------------
π£ JOIN our ππππ π’π§πππ«π―π’ππ° ππ«ππ’π§π’π§π π©π«π¨π π«ππ¦β¦
Which architecture would you choose for read-heavy system ?
Anonymous Quiz
30%
Multi-Master Slave Architecture
49%
Single-Master Multi-Slave Architecture
19%
P2P Architecture
2%
Pipe-Filter Architecture
Count Complete Subarrays in an array:
https://youtu.be/Taj4VhCycRU
https://youtu.be/Taj4VhCycRU
YouTube
Count Complete Subarrays in an Array | Leetcode 2799
This video explains Count Complete Subarrays in an Array using the most optimal sliding window two pointer approach.
-----------------------------------------------------------------------------------------------------------------------------------------β¦
-----------------------------------------------------------------------------------------------------------------------------------------β¦
Today's problem is same as yesterday's and many last few problems.
Hence, not making video today.
REFERENCE CODE:-
class Solution {
#define ll long long
public:
long long countSubarrays(vector<int>& nums, int k) {
ll valid_subarrays = 0;
int win_count = 0;
int left = 0,right = 0;
int maximum = *max_element(nums.begin(), nums.end());
int n = nums.size();
while(left<n){
while(right<n and win_count<k){
if(nums[right]==maximum)
win_count++;
right++;
}
if(win_count==k)
valid_subarrays += n-right+1;
if(nums[left]==maximum)
win_count--;
left++;
}
return valid_subarrays;
}
};
Hence, not making video today.
REFERENCE CODE:-
class Solution {
#define ll long long
public:
long long countSubarrays(vector<int>& nums, int k) {
ll valid_subarrays = 0;
int win_count = 0;
int left = 0,right = 0;
int maximum = *max_element(nums.begin(), nums.end());
int n = nums.size();
while(left<n){
while(right<n and win_count<k){
if(nums[right]==maximum)
win_count++;
right++;
}
if(win_count==k)
valid_subarrays += n-right+1;
if(nums[left]==maximum)
win_count--;
left++;
}
return valid_subarrays;
}
};
Find Minimum Time to Reach Last Room 1 & 2 :
https://youtu.be/kGTqCOdXrhE
https://youtu.be/kGTqCOdXrhE
YouTube
Find Minimum Time to Reach Last Room 1 & 2 | Leetcode 3341 and 3342
This video explains the minimum time to reach last room problem which is from leetcode 3341 and Leetcode 3342 using the most optimal dijkstra algorithm.
-----------------------------------------------------------------------------------------------------β¦
-----------------------------------------------------------------------------------------------------β¦
Find Minimum Time to Reach Last Room 1 & 2:
https://youtu.be/kGTqCOdXrhE
https://youtu.be/kGTqCOdXrhE
YouTube
Find Minimum Time to Reach Last Room 1 & 2 | Leetcode 3341 and 3342
This video explains the minimum time to reach last room problem which is from leetcode 3341 and Leetcode 3342 using the most optimal dijkstra algorithm.
-----------------------------------------------------------------------------------------------------β¦
-----------------------------------------------------------------------------------------------------β¦