This question used to haunt me, I don't know why??? Now, after watching your lectures, it is like kya hi hai yeh question... Itni easy peezy. Thank you 🙏
I am not getting that how the time complexity of this code is O(N) because it is having two loops inside each other so isn't this should be O(N^2.Can anyone pls help
beta, loop mei loop hmesha n^2 nahi bnata. Jaise socho bahar wala loop agar n/m baar chalega aur andar wala m baar to complexity n hogi na. waisa kuch ho rha hai. bahar wala loop rows ke barabar chal rha hai aur andar wala n/rows to total hua n. Soch kar btao ki samajh aya ya nahi?
Thank you for making this question that much easier.
Your teaching style is absolutely fantastic! The way you break down complex concepts makes learning enjoyable and easy to grasp.
This question used to haunt me, I don't know why???
Now, after watching your lectures, it is like kya hi hai yeh question... Itni easy peezy.
Thank you 🙏
Genuine teacher .. Amazing
Thanks for teaching
sach me sir, aapke samjane ka tarika mast hai
best explaination bhai
Baap level explainer ho aap ❤❤❤❤❤❤
Great video.. Kudos !!
Great explanation
God bless you sir.
Sir what what will be the time complexity and space complexity . Pls discuss it too.
sir why am I getting memory Limit exceeded while running this code, please help
Sir please start preparation again, ruk kyu gaye
Sir could you please do discussion regarding time complexity also at the end of each question.
Sure. In all next questions.
Sir, please teach system design
class Solution {
public String convert(String s, int n) {
if(n==0)return s;
StringBuilder ss=new StringBuilder();
for(int i=0;i
Bohot dino baad
What will be the time complexity of this approach?
I am not getting that how the time complexity of this code is O(N) because it is having two loops inside each other so isn't this should be O(N^2.Can anyone pls help
beta, loop mei loop hmesha n^2 nahi bnata. Jaise socho bahar wala loop agar n/m baar chalega aur andar wala m baar to complexity n hogi na. waisa kuch ho rha hai. bahar wala loop rows ke barabar chal rha hai aur andar wala n/rows to total hua n. Soch kar btao ki samajh aya ya nahi?
@@Pepcoding Got it! Thank you so much sir
amar bal