10 Largest number in K swaps Code and Time Complexity

  Рет қаралды 9,639

Aditya Verma

Aditya Verma

Күн бұрын

Пікірлер: 48
@pratyushkumarsahoo6117
@pratyushkumarsahoo6117 9 ай бұрын
please make a playlist on trees and graphs
@OIAOa
@OIAOa 9 ай бұрын
It's a humble request to bhaiya Please make playlist on trees,array and strings..... I found at your channel in sliding window playlist it was amazing by seeing the problem im able to solve... Thank you so much 👍❤ Your teaching was perfect 😊
@rishabhahuja7413
@rishabhahuja7413 9 ай бұрын
Sir waiting for trees and graphs!! sb achi companies graph puch rhi hai
@subhadiphazra2602
@subhadiphazra2602 9 ай бұрын
Yes sir he is correct
@rishabhahuja7413
@rishabhahuja7413 9 ай бұрын
Not comparing with anyone, Aditya bhai ka andaz hi alg hai
@mohit6215
@mohit6215 9 ай бұрын
Vote for graphs playlist 👆 . Ab to hamara dard sunle 😢
@keerthankumarc2681
@keerthankumarc2681 2 ай бұрын
correction the max element we need to find is char max = *max_element(str.begin()+start,str.end())🙃
@ManishKumar-ux5un
@ManishKumar-ux5un 9 ай бұрын
Thanks a lot for sharing your coding experience learning so well. I really appreciate your effort. Your way of tackling questions are awesome. Very nice!!. Please try to complete all backtracking questions as soon as possible (its a kind request to you). One more request: If possible please choose Tree and Graph also. (Tree first)
@lostcyrus8578
@lostcyrus8578 8 ай бұрын
Please complete the remaining dp playlist variations of LIS , kadanes ,grid nd rest others . waiting for it so much long time
@varunpalsingh3822
@varunpalsingh3822 9 ай бұрын
Tree and graphs plz ❤
@yashassurendra5653
@yashassurendra5653 9 ай бұрын
Back in Business 😤🔥
@neelthakker7070
@neelthakker7070 9 ай бұрын
Thanks a lot for the DP playlist ❣️
@sambhavjain3653
@sambhavjain3653 2 ай бұрын
@TheAdityaVerma bhai you are awesome man!
@cool7827
@cool7827 9 ай бұрын
There is virat in cricket And there is Aditya Verma sir for DSA👑
@ajaygopireddy3188
@ajaygopireddy3188 8 ай бұрын
Sir, please add TC in the next videos as well
@chandrachurmukherjeejucse5816
@chandrachurmukherjeejucse5816 9 ай бұрын
Great lecture.
@mukeshrawat1304
@mukeshrawat1304 9 ай бұрын
Wo Basics of Backtracking wali video ke Outro mai "subscribe if you want girlfriend" tha, Subscribe toh kar diya, wo girlfriend bhi mil jati to acha rehta, graph ki playlist 4-5 saal delay bhi ho jaye to chalega 😶
@mohit6215
@mohit6215 9 ай бұрын
He will be with us ❤ only
@jswlprtk
@jswlprtk 9 ай бұрын
Finally!
@lofireverbz-wy7go
@lofireverbz-wy7go 9 ай бұрын
month mai ek video daalre ho ,kuch to socho bhiaiya hmare baare mai
@Prateek_Mantry
@Prateek_Mantry 6 ай бұрын
thank you.
@suraj_patwa
@suraj_patwa 9 ай бұрын
Sir aak din live Instagram Or KZbin
@abhinjr4918
@abhinjr4918 9 ай бұрын
Who all think he was dead...... I searched in google today is he dead than saw he uploaded latest video 2 months ago.... This is the correct time he has arrived ... Lagtha hai bhagwaan ne ek farishtha beja hai, verma bhai muje appke sath kam karna hai.... I am coming flipkart next year placement hai.....
@parvahuja7618
@parvahuja7618 9 ай бұрын
sir stack ki playlist please complete kar dijiye
@rahularyan9808
@rahularyan9808 9 ай бұрын
Graph please
@CrimeFilesJustice
@CrimeFilesJustice 9 ай бұрын
Graph and tree please
@rishabsharma5307
@rishabsharma5307 6 ай бұрын
amazing video
@adhitya001
@adhitya001 Ай бұрын
What if the input is 7145.... Code will not work??
@akashpurbia4390
@akashpurbia4390 9 ай бұрын
🙌
@nagendrabommireddi8437
@nagendrabommireddi8437 8 ай бұрын
thanks a lot
@VickeyKumar-lk3vj
@VickeyKumar-lk3vj 8 ай бұрын
I think k swap using inplace insertion sort would be better for this
@harki-v8m
@harki-v8m 9 ай бұрын
how to make recursion strong i am facing issues in recursion
@diglive123
@diglive123 8 ай бұрын
Can we have the base condition as k==0 or all the numbers in the result string to be in decreasing order?? I'm not able to intuitively understand the need for the start variable to go all the way to the end of the input string. Any help/comment on the same is greatly appreciated. Thanks in advance!!!
@Muigoku49
@Muigoku49 4 ай бұрын
Consider the example 7512, and let's say k=2. In this case we only need one swap, swap 1 and 2 and we get the largest number 7521, we did not even need 2 swaps, so in cases like these k will never reduce to zero and the recursion would never stop, that is why the other base condition is added.
@tirthshah2832
@tirthshah2832 4 ай бұрын
C++ code: class Solution { public: void solve(string &str, int k, int start, string &ans){ if(k==0 || start==str.size()-1){ return; } char maxs= *max_element(str.begin()+start,str.end()); for(int i=start+1;i
@buntyagarwal7717
@buntyagarwal7717 4 ай бұрын
Max_element main start+1 hoga right?
@mohit6215
@mohit6215 9 ай бұрын
Aditya verma sir live ajao ek baar ❤
@_desouvik
@_desouvik 6 ай бұрын
Subscribed in the name of Bengali Girls
@himanirana6526
@himanirana6526 5 ай бұрын
Is it only me who feels that the volume is low?
@hritikaroy6797
@hritikaroy6797 6 ай бұрын
what will be the equivalent function for max_element() in JAVA? Can anyone help me?
@6ft2
@6ft2 3 ай бұрын
max()
@manasareddy8715
@manasareddy8715 Ай бұрын
char maxs = str.substring(start).chars() .mapToObj(c -> (char) c) .max(Character::compareTo) .orElse(Character.MIN_VALUE);
11 N Digit numbers with digits in increasing order
32:24
Aditya Verma
Рет қаралды 9 М.
8 Permutation of Strings | Backtracking Solution
34:35
Aditya Verma
Рет қаралды 18 М.
Mia Boyka х Карен Акопян | ЧТО БЫЛО ДАЛЬШЕ?
1:21:14
Что было дальше?
Рет қаралды 11 МЛН
Which team will win? Team Joy or Team Gumball?! 🤔
00:29
BigSchool
Рет қаралды 14 МЛН
Walking on LEGO Be Like... #shorts #mingweirocks
00:41
mingweirocks
Рет қаралды 6 МЛН
19  Longest common subsequence Recursive
27:42
Aditya Verma
Рет қаралды 293 М.
10 Minimum Subset Sum Difference
46:41
Aditya Verma
Рет қаралды 393 М.
On These Questions, Smarter People Do Worse
14:35
Veritasium
Рет қаралды 3,2 МЛН
Big-O Notation - For Coding Interviews
20:38
NeetCode
Рет қаралды 507 М.
Introducing 2D Geometry Library
20:52
javidx9
Рет қаралды 51 М.
36  Palindrome Partitioning Recursive
26:35
Aditya Verma
Рет қаралды 197 М.
«Осень». Самая большая загадка Windows XP
14:36
Девять десятых
Рет қаралды 1,1 МЛН
Mia Boyka х Карен Акопян | ЧТО БЫЛО ДАЛЬШЕ?
1:21:14
Что было дальше?
Рет қаралды 11 МЛН