Orderly Queue | Leetcode 899
12:34
Guess the Word | Leetcode 843
19:52
3Sum Closest | Leetcode 16
15:03
Жыл бұрын
Path Sum | Leetcode 112 | C++
9:21
Race Car | Leetcode 818 | C++
30:26
Add Two Numbers | Leetcode 2 | C++
11:42
Bridge and Torch Puzzle 🔥
4:20
2 жыл бұрын
Пікірлер
@ShivarajappaP-o2g
@ShivarajappaP-o2g Күн бұрын
thank you so much...
@ShivarajappaP-o2g
@ShivarajappaP-o2g Күн бұрын
thanks
@ShivarajappaP-o2g
@ShivarajappaP-o2g 4 күн бұрын
thanks a lot.🙏
@ShivarajappaP-o2g
@ShivarajappaP-o2g 4 күн бұрын
thanks a lot
@ShivarajappaP-o2g
@ShivarajappaP-o2g 4 күн бұрын
Thanks a lot.🙏
@ShivarajappaP-o2g
@ShivarajappaP-o2g 4 күн бұрын
Thank you for the video.
@munzirahmed6424
@munzirahmed6424 4 күн бұрын
class Solution: def canBeEqual(self, target: List[int], arr: List[int]) -> bool: return sorted(target)==sorted(arr) #one line code in python
@abhisekdash1170
@abhisekdash1170 5 күн бұрын
if(arr[i] >= 0) break;
@acridpie4492
@acridpie4492 5 күн бұрын
I dont get this, why would microsoft and big tech companies would ask this question?? Why not the hardest and toughest question ever out there ??
@yuxinren233
@yuxinren233 8 күн бұрын
first sight and i wanna quit now
@Nick-j3e
@Nick-j3e 10 күн бұрын
in the solution, line #10 should be int j=i for a single character string. Also line #15 should be i=j if that falls true.
@Nick-j3e
@Nick-j3e 10 күн бұрын
string reverseWords(std::string s) { int i = 0; int n = s.length(); string ans; while (i < n) { while (i < n && s[i] == ' ') { i++; // skip spaces } if (i >= n) break; int j = i; while (j < n && s[j] != ' ') { j++; // find the end of the word } string word = s.substr(i, j - i); // extract the word if (ans.empty()) { ans = word; // if it's the first word, no need to add space } else { ans = word + " " + ans; // prepend the word } i = j; // move to the next word } return ans; }
@Nick-j3e
@Nick-j3e 10 күн бұрын
string reverseWords(std::string s) { int i = 0; int n = s.length(); string ans; while (i < n) { while (i < n && s[i] == ' ') { i++; // skip spaces } if (i >= n) break; int j = i; while (j < n && s[j] != ' ') { j++; // find the end of the word } string word = s.substr(i, j - i); // extract the word if (ans.empty()) { ans = word; // if it's the first word, no need to add space } else { ans = word + " " + ans; // prepend the word } i = j; // move to the next word } return ans; }
@congjuny
@congjuny 12 күн бұрын
:12" So essentially, a web server is a computer system that runs web server software???
@AkshyaSingh-ff1fe
@AkshyaSingh-ff1fe 12 күн бұрын
Nice Video!
@AkshyaSingh-ff1fe
@AkshyaSingh-ff1fe 12 күн бұрын
Learn by Doing
@AmikshaJain
@AmikshaJain 13 күн бұрын
Unlock the full potential of your website with HEROXHOST's premium hosting services. Enjoy unmatched speed, security, and reliability. Your website deserves the best
@PranavKamathe
@PranavKamathe 14 күн бұрын
Starting the Leetcode Journey
@donkinggaming2282
@donkinggaming2282 11 күн бұрын
What are other needs bro please share iam also starting today
@rajapanda5811
@rajapanda5811 16 күн бұрын
Im not able to find videos line by line
@alifrahman7099
@alifrahman7099 16 күн бұрын
Nice proof. ❤❤
@vinamrajha1571
@vinamrajha1571 17 күн бұрын
upcasting and downcasting should have been explained
@SwetankRaj
@SwetankRaj 18 күн бұрын
Nice explanation with fabulous approach.
@MaheshBabu-uj3jl
@MaheshBabu-uj3jl 19 күн бұрын
So wrong man
@harsha171
@harsha171 20 күн бұрын
For java users here is the code class Solution { public String reverseWords(String s) { char []str=s.toCharArray(); String result="",w=""; int n=s.length(); int i=0,j=0; while(i<n) { while(i<n && str[i]==' ') i++; j=i+1; while(j<n && str[j]!=' ') j++; if(j<=n) {w=s.substring(i,j); if(result.isEmpty()) { result=""+w; } else result=w+" "+result; } i=j+1; } return result; } }
@Tanushi-ly7pi
@Tanushi-ly7pi 24 күн бұрын
thee best video I ever had in this ques
@ravipaliwal4041
@ravipaliwal4041 24 күн бұрын
By the way there was no need to swap;
@suvrabhattacharjee6592
@suvrabhattacharjee6592 25 күн бұрын
this was best solution so far
@swamininarkhede
@swamininarkhede 27 күн бұрын
how to set the normal c++ coding we learn this c++ is not easy to understand
@Shivam-sf5im
@Shivam-sf5im 27 күн бұрын
Legendary playlist
@Kickmowa
@Kickmowa 27 күн бұрын
i want full course
@Kickmowa
@Kickmowa 27 күн бұрын
i want full course
@Coding2108
@Coding2108 Ай бұрын
THANK YOU SIR
@rohith8269
@rohith8269 Ай бұрын
Such a great explanation!
@franco521
@franco521 Ай бұрын
Best video on dynamic_cast, thank you sir!
@SashaktMaadhyam
@SashaktMaadhyam Ай бұрын
"I've been with HEROXHOST for 3 years now, and they've consistently exceeded my expectations. From their intuitive control panel to their proactive security measures, they've made hosting stress-free for me."
@ganeshjaggineni4097
@ganeshjaggineni4097 Ай бұрын
NICE SUPER EXCELLENT MOTIVATED
@walterwhite0110
@walterwhite0110 Ай бұрын
terrible video can't understand a thing i came to learn about a term but this mf keep bomabarding a more hundred terms on me like tf is a static db. what is HTTP response and request. make sure if you are using a term not overone on the internet knows about that you already know. make me hate this subject more. Bravo!
@sheikhmkrifat7749
@sheikhmkrifat7749 Ай бұрын
I think you have to work on your English
@MilanMVlogs
@MilanMVlogs Ай бұрын
At 3:12 'i' variable is looking for space and 'j' variable is looking for non space. Anybody Correct me if i am wrong?
@divy04
@divy04 Ай бұрын
wonderfulll solution, thanks
@techlyric
@techlyric Ай бұрын
but it starts from a.begin and till d-1 as per your explanation, then why in code it is till d only?
@techlyric
@techlyric Ай бұрын
as in a.begin() +d, it should be rather (d-1)?
@Tenaciour
@Tenaciour Ай бұрын
Do they ask to solve in iterative way? it doesn't even seem efficient?
@sudiptasikdar2842
@sudiptasikdar2842 Ай бұрын
can you please let me know what is auto
@vananhtha8241
@vananhtha8241 Ай бұрын
thanks, amazing video
@timog7358
@timog7358 Ай бұрын
amazing video
@dhruvshah7952
@dhruvshah7952 Ай бұрын
hi, I solved this problem without giving regard to which task has higher frequency. I am just scheduling the first available task that is past the cooldown period. All test cases passed. I am using two maps one to keep frequency count and one to track the earliest possible time I can schedule the task next.
@bruyhbruh8687
@bruyhbruh8687 2 ай бұрын
thank you sir the videos are really nice not skipping over the dferivations
@jcbritobr
@jcbritobr 2 ай бұрын
This is desnecessarily complex.
@iOSxBank
@iOSxBank 2 ай бұрын
Yoo check out my page I’m doing LeetCode in Swift
@Programmergb
@Programmergb 2 ай бұрын
Thanks ❤