JAVAAID community: KZbin recently changed the way they monetize my content. My channel now needs 1,000 subscribers so it would be awesome if you could show your support by both watching my videos and subscribing to my channel if you haven’t already done so. Monetizing my videos allows me to invest back into the channel with new equipment so a small gesture from you goes a huge way for me. Many thanks for your support!
@smahidharreddy5 жыл бұрын
Hi Kanahaiya, Thanks for the video. your solution is good and pretty simple to understand. Could you also make video on Queens Attack II.
@JavaAidTutorials5 жыл бұрын
@@smahidharreddy Thanks for your compliment. Will try to make a tutorial on this on future if possible. It takes a lot of effort and time to make the good content and after that, very fewer people will watch then it does not motivate the creator at all. so currently I am focusing on the questions which most of the people tried but did not able to solve due to the right algorithm or approach. If there are too many people who want the solution for Queen attack problem will definitely make a video tutorial on this very soon. but if you need help to solve this, I can.
@navinchainani47214 жыл бұрын
First i don't understand programming i finds it too difficult then i started coding from u KZbin channel after that i understand coding very nicely
@JavaAidTutorials4 жыл бұрын
thanks for the such a nice compliment.🙂 I am glad, you are learning something from our channel.
@GG-sw9vm Жыл бұрын
Does this work with "dkhc", with the logic, it will be d k h c, since d < k, we swap out c which is the smallest character to the right, now it becomes c k h d, after sorting c d h k which is wrong.
@yashsalvi50433 жыл бұрын
How do you come up with such logics bro ? Legit 🐐
@abhinashbihari28814 жыл бұрын
We can use next_permutation(s.begin,s.end) to get next lexicographical greater string
@Mike-mw1fu5 жыл бұрын
Thank for helping me in optimizing code
@JavaAidTutorials5 жыл бұрын
Most welcome.
@ashutoshaswal5 жыл бұрын
From your reply on my solution! Thanks for helping me in optimizing the code!
@JavaAidTutorials5 жыл бұрын
most welcome..:)
@rajasinghrajpoot86262 жыл бұрын
thank u very much brother..
@satyasantosh31434 жыл бұрын
Very good explanation!
@JavaAidTutorials4 жыл бұрын
Glad it was helpful!
@susritipal37474 жыл бұрын
Sir why you take endindex = n-1, extend- -, In the loop please explain
@arunkumarvaithiyanathan98083 жыл бұрын
Please Explain Line 32: int firstSmallChar=charArray[endindex-1] why should we convert char to int ? Instead of do like Line 32: int firstSmallChar=endindex-1; Line 37: In 'if' condition (charArray[startindex]>charArray[firstSmallChar]) Thanks in Advance!!
@navinchainani47214 жыл бұрын
Bro u are best KZbinr u are making future of ours keep doing bro
@JavaAidTutorials4 жыл бұрын
thanks. just trying to convey my knowledge in a best possible ways.
@adarshjaiswal73344 жыл бұрын
I have started loving your vedios and parallelly the Hackerrank. But I was having a doubt here line37 :- Is it necessary to check charArray[startIndex]> firstSmallChar , bcz in the starting loop itself we have selected "d" which is smaller than all other so obviously value of charArray[startIndex] will be always greater than "d". Please let me understand if I misunderstood something.
@JavaAidTutorials4 жыл бұрын
Could you please mentioned the time as well , so that i can go and recall it.
@reevarastogi62243 жыл бұрын
very nice explaination!!
@kratikavarshney11065 жыл бұрын
Thanks. Very clear
@JavaAidTutorials5 жыл бұрын
thanks for you feedback @Kratika.
@codeminatiinterviewcode64594 жыл бұрын
I was doing the same thing but just using an extra string for return and hence HRank was giving Segmentation Fault... And I wasted 2 Hrs. in Detecting Error of Memory overload... I hope this helps... :)
@sagarock10124 жыл бұрын
Hey! I didn't get the question , how is "abcd" > "abdc" Thank you
@JavaAidTutorials4 жыл бұрын
you have to consider lexicographical order (alphabetical order).that's why abcd > abdc because abcd comes before abdc (if you look into dictionary)
@sandrakonotey45703 жыл бұрын
@@JavaAidTutorials "abcd" < "abdc"(abcd is less than abdc) not "abcd" > "abdc"
@anuragsekhri23155 жыл бұрын
well explained
@JavaAidTutorials5 жыл бұрын
thank you..:)
@tanmaysinghal83704 жыл бұрын
Bro please make the video solution for all the solution that is in there in your GitHub.
@JavaAidTutorials4 жыл бұрын
Sure, we are working on it. 👍
@linuxtubers73134 жыл бұрын
Thanks
@JavaAidTutorials4 жыл бұрын
Welcome
@ankitkumar-ql4yh3 жыл бұрын
hey i followed your video and did the same but still my half test cases are getting time out..i have commented my code in the discussion section in your comment thread ..please check it and tell me what im doing wrong
@rogercute20023 жыл бұрын
Why not "ecdfhi" is the answer?
@TheAriaFans29 күн бұрын
Subtitles pls i really need it.
@LetszGoo3 жыл бұрын
What is the complexity of this
@AnkitKumar54 жыл бұрын
This is O(n^2) solution. Is there a better solution?
@JavaAidTutorials4 жыл бұрын
The above explained solution is having O(N) complexity 😊.
@sterl17895 жыл бұрын
this solution is nlogn
@JavaAidTutorials5 жыл бұрын
Hi Sterling Quinn, this is the catch here, it looks that its nlogn but it's not because sorting a string array will take O(nlogn) time but sorting a char array will take only O(n) time, you can apply counting sort for that.
@sterl17895 жыл бұрын
JAVAAID - Coding Interview Preparation oh cool that makes sense thank you!
@JavaAidTutorials5 жыл бұрын
welcome. :) if you find this channel useful , please share with your friends.
@jhonhernandez92109 ай бұрын
I couldn't understand much cause of tha english with indian accent
@kingnani15575 жыл бұрын
Explain the code more clearly .. you're explaining the code very fast
@JavaAidTutorials5 жыл бұрын
Thanks for your feedback @KING NANI , will try the same. Keep leaning , keep sharing..!!😊