Letter Combinations of a Phone Number | INTUITIVE | Backtracking Template | Leetcode-17

preview_player
Показать описание
****************Similar Qns************

This is the 9th Video on our Backtracking Playlist.
In this video we will try to solve a classic Backtracking Problem Letter Combinations of a Phone Number - (Leetcode-17).

Share your learnings on LinkedIn, Twitter (X), Instagram, Facebook(Meta) with hashtag hashtag #codestorywithmik & feel free to tag me.

Trust me, this will no longer be a Medium Problem. I will explain the intuition so easily that you will never forget and start seeing this as cakewalk EASYYY.

We will do live coding after explanation and see if we are able to pass all the test cases.

Problem Name : Letter Combinations of a Phone Number
Company Tags : Microsoft, Meta, Epic Systems, Amazon, Flipkart

╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝

#coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge#leetcodequestions #leetcodechallenge #hindi #india #hindiexplanation #hindiexplained #easyexplaination #interview#interviewtips
#interviewpreparation #interview_ds_algo #hinglish #github #design #data #google #video #instagram #facebook
Рекомендации по теме
Комментарии
Автор

I have been following you since 2023, I can say ur explanation is better than many paid course teachers.

STR
Автор

esi explanation kisi aur channel pr nhi he u r the best teacher of DSA i have

tecproudtuber
Автор

Already solved the question. Came here just to give it a like

aadil
Автор

It's impressive. This is the best channel for DSA problems.

mdnezamuddin
Автор

guruji aap mahaan ho.Thanks for being a teacher.

guddukumar-vzl
Автор

Very well explained all doubts clear thanks

dayashankarlakhotia
Автор

You are the best bro. You are step by step making all topics easy for me which was scary to me.

souravjoshi
Автор

Crystal clear bhai, mene simple recursion se kar diya (induction base hypothesis) but always eager to learn other approaches from you for better pattern recognition of the problem 🙏🏻

daayush
Автор

Dude legit no one explained like that ever🔥🔥🔥

prajavi_S
Автор

Now I am getting bit of clarities and confidence, I know its beginning and I am stucking somewhere but I surely say one day I will rock and solve answer by myself. You are Helping So Much❤

vivekpatidar
Автор

Bro You explaining like no one else on YT❤

Kode_with_Kushwah
Автор

Thanks, bro. Your way explanation is awesome, After watching this video I gained clarity on how to think and understand decision trees. Before this, I was struggling to understand how this decision tree would convert to code?

dimplevarshney
Автор

Back on track again . Thankyou for daily reminder.

adarshdhital
Автор

Mik Sir your Tree 🎄 Diagram + Dialog Deliveries boost my confidence += infinity

saquibabbas
Автор

bhai sahab. Ap ka hath hum pe rahe. Thank you.

dishandshah
Автор

i am not able to construct tree diagram please suggest fow to construct tree diagram and how to dry run for this tree digram

codecreateriitp
Автор

thanks for the explanation. i was able to do it myself:

const mapping = {
2: 'abc',
3: 'def',
4: 'ghi',
5: 'jkl',
6: 'mno',
7: 'pqrs',
8: 'tuv',
9: 'wxyz',
}
/**
* @param {string} digits
* @return {string[]}
*/
var letterCombinations = function (digits) {
if (!digits) return [];
let results = [];
const solve = (i, temp) => {
if (i >= digits.length) {
results.push(temp);
return;
}
for (const char of mapping[digits[i]]) {
solve(i + 1, temp + char);
}
}

solve(0, "");
return results;
};

floatingpoint
Автор

I did this question on my own but made notes of these videos and again submitted this code for better readability. Thank you #mikbhaiya 🥰

rohanraj
Автор

Sir in wich vidio i found these standerd tamplates of recn and backtrack??

mayankshakya
Автор

Bhaiya, ismain hamne number wale string par for loop kyu nehi use kia?

arnabsarkar