My BANGALORE FLAT TOUR 🏠
9:43
Жыл бұрын
Пікірлер
@DoddavarapuGirisha
@DoddavarapuGirisha Күн бұрын
Bro how to apply data analyst job for freshers ?? when openings be for data anayst role in amazon?? pls tell me bro
@sakshigupta6950
@sakshigupta6950 4 күн бұрын
My is for 3 months in phonepay will I get PPO they said we can't say right now
@harshitbachkheti376
@harshitbachkheti376 8 күн бұрын
JAVA CODE package String_StringBuilder_ArrayList.LoveBabbarDsaSheet; import java.io.*; import java.util.*; //Count and say problem public class q7 { public static void main(String[]args){ Scanner sc= new Scanner(System.in); String str= sc.nextLine(); System.out.println(CountandSay(str)); } public static String CountandSay(String str){ StringBuilder sb = new StringBuilder(); int count=1; for(int i=1; i<str.length();i++){ char curr = str.charAt(i); char prev = str.charAt(i-1); if(curr==prev){ count++; } else{ if(count>1){ sb.append(count); sb.append(prev); count =1; } else { sb.append(prev); count = 1; } } } sb.append(count); sb.append(str.charAt(str.length() - 1)); return sb.toString(); } }
@harshitbachkheti376
@harshitbachkheti376 8 күн бұрын
JAVA code:- package String_StringBuilder_ArrayList.LoveBabbarDsaSheet; import java.util.*; //WAP to Check if Strings Are Rotations of Each Other public class q5 { public static void main(String[]args){ Scanner sc = new Scanner(System.in); System.out.println("Enter String 1: "); String str1 = sc.nextLine(); System.out.println("Enter String 2: "); String str2 = sc.nextLine(); System.out.println(rotationCheck(str1, str2)); } public static boolean rotationCheck(String str1, String str2){ if (str1.length() != str2.length()) { return false; } String concatenated = str1 + str1; if(concatenated.contains(str2)){ return true; } return false; } }
@black_jack_meghav
@black_jack_meghav 13 күн бұрын
bhai muje tumhara content babber or straiver se bhi jaada accha lagta hai. seedhi baat , no bakwaas.
@joeroot-p6y
@joeroot-p6y 16 күн бұрын
I think we can keep track of first non repeating character and update it accordingly. By this we can solve in O(n)
@aaryanyadav3732
@aaryanyadav3732 20 күн бұрын
just learn the code and record it on youtube
@McBc-g4o
@McBc-g4o 20 күн бұрын
corner cases is not covered,
@harshitdeval4120
@harshitdeval4120 21 күн бұрын
i have written same code but it says time limit exceeded void inorder(TreeNode<int>* root, TreeNode<int>* &prev){ if(!root) return; inorder(root->left, prev); prev->right=root; prev->left=NULL; prev=root; inorder(root->right,prev); } TreeNode<int>* flatten(TreeNode<int>* root) { // Write your code here TreeNode<int>*temp=new TreeNode<int>(-1); TreeNode<int>*prev=temp; inorder(root,prev); prev->right=NULL; prev->left=NULL; TreeNode<int>*newRoot=temp->right; temp->left=NULL; temp->right=NULL; delete temp; return newRoot; }
@Bikash_The_1
@Bikash_The_1 21 күн бұрын
Did you take interview preparation course or Competitive programming course of Coding blocks
@umeshkaushik710
@umeshkaushik710 25 күн бұрын
bhai tum na gym gaye na tumne coffee pii hai, natak kyu ye samjhe nhi aaya bus
@lordmavin5464
@lordmavin5464 27 күн бұрын
mast samjhaya h bhai!
@nikhilbhu5584
@nikhilbhu5584 27 күн бұрын
nice explaination
@JyotiGupta-gu5kk
@JyotiGupta-gu5kk Ай бұрын
I have a question
@juturtaur298
@juturtaur298 Ай бұрын
Thank you🙏😊
@BhumiiGowdaa
@BhumiiGowdaa Ай бұрын
Sir can you share all the resources plz It will help me so much
@gagan69
@gagan69 Ай бұрын
I received assignments mail, please help me
@deepaksingh-qd7xm
@deepaksingh-qd7xm Ай бұрын
yr koi tabulation bata hi ni r h
@chayankdas
@chayankdas Ай бұрын
zeotap m apply kiya tha, unlogo neh assignment bheja Rule engine with ast bnane, can anybody help with this project ya kisine yeh project kiya ho phle ?
@viralinfo8051
@viralinfo8051 Ай бұрын
Bhai reply aya?mene bhi kia tha kuch shortlist hue?
@viralinfo8051
@viralinfo8051 Ай бұрын
Bhai mene bhi apply kia tha assignment kra kuch shortlist ya reply aya h?
@chayankdas
@chayankdas Ай бұрын
@@viralinfo8051 nhi bhai, kuch nhi aaya abhi tk
@rishi4307
@rishi4307 Ай бұрын
Correct code: class Solution { public: /*This function returns true if the tree contains a duplicate subtree of size 2 or more else returns false*/ string solver(Node *root, unordered_map<string, int> &mp) { // base case if (root == NULL) { return "$"; } // for the leaf node if (root->left == NULL && root->right == NULL) { // since the leaf nodes can be same but it would not be >= 2 so we are not adding it to the map return to_string(root->data) + "$"; } string str = ""; // if not a leaf node then get the string and go left and right str += to_string(root->data) + "$"; str += solver(root->left, mp); str += solver(root->right, mp); // finally while backtracking add the string with it's freq in the map mp[str]++; return str; } int dupSub(Node *root) { // creating a map for storing the string and the freq unordered_map<string, int> mp; solver(root, mp); for (auto it : mp) { if (it.second >= 2) { return 1; } } return 0; } };
@manojbhargava2838
@manojbhargava2838 Ай бұрын
Asa lgta hai ap he confuse hore hore ho 😢
@sakshikumari4287
@sakshikumari4287 Ай бұрын
Can u help me in my assignment
@AgeNtX071
@AgeNtX071 Ай бұрын
🤣kuch bhi
@asish8880
@asish8880 Ай бұрын
Bro, I also had an Assignment. Did you get any Call?
@zanies6288
@zanies6288 23 күн бұрын
Did you get anything after submitting the assignment​@@asish8880
@jatinshilen
@jatinshilen Ай бұрын
Given 80 hour workweeks that an hourly equivalent to 60000 pm for a 40 hour job 😂
@HarshitJain-cy7nd
@HarshitJain-cy7nd Ай бұрын
bakwaaaas explanation
@rishi4307
@rishi4307 Ай бұрын
focus more on dry run than the code , that would make the learning more easy!!
@juturtaur298
@juturtaur298 Ай бұрын
Thanks vro ham bangali hau
@vinamrajha1571
@vinamrajha1571 Ай бұрын
optimized 8:51
@abhishekh353
@abhishekh353 Ай бұрын
Easy Approach Node* addOne(Node* head) { Node* newhead= reverse(head); Node* curr=newhead; while(curr!=NULL){ if(curr->data<9){ curr->data+=1; break; } curr->data=0; if(curr->next==nullptr){ Node* temp=new Node(1); curr->next=temp; break; } curr=curr->next; } return reverse(newhead); } };
@DurgaShiva7574
@DurgaShiva7574 Ай бұрын
You are a coding prodigy 🎉
@sbpgenerics5825
@sbpgenerics5825 Ай бұрын
NYC sir
@hemantkhare26
@hemantkhare26 Ай бұрын
Have you stored these codes in the githu??/
@pragatiagrawal201
@pragatiagrawal201 Ай бұрын
Great!
@rohitsingh.4697
@rohitsingh.4697 Ай бұрын
ans will be 0 only when the arr[i]==x then why we need to move for even one step??
@adamyasharma_0135
@adamyasharma_0135 Ай бұрын
best explanation on this question over all the youtube!thanks alot ,that explanation through table was too good.
@biswamohandwari6460
@biswamohandwari6460 2 ай бұрын
you drink so little litter. Water costs me 70 for 5 liters in Bangalore, Drink more water
@masumali8356
@masumali8356 2 ай бұрын
u are great.....
@clovisstanford6515
@clovisstanford6515 2 ай бұрын
How can I gte that sheet
@shrinikclub8883
@shrinikclub8883 Ай бұрын
google Lovebabbar DSA 450
@omkumarjha2745
@omkumarjha2745 2 ай бұрын
Finally getting a approach which is more intutive.
@masumali8356
@masumali8356 2 ай бұрын
lovely............
@abhiroopmokshagnabheemineni
@abhiroopmokshagnabheemineni 2 ай бұрын
At first I was confused, but I am clear after 2nd explanation
@bhushandharne8827
@bhushandharne8827 2 ай бұрын
Best explanation
@yt_goluyadav
@yt_goluyadav 2 ай бұрын
Bhai tum samjhate Aacha ho bs samjhaya mt kro
@RUCHITAPANDIT-cv8tl
@RUCHITAPANDIT-cv8tl 2 ай бұрын
@CodeLibrary can you explain when we take array as 1, 2, 3, 2, 4 the output for this is coming 3 5 how
@anirbandutta5436
@anirbandutta5436 2 ай бұрын
Criteria Kaya hai just pay ka
@nikhilrajbhar131
@nikhilrajbhar131 2 ай бұрын
jhantu explanation
@mr.rahulrj
@mr.rahulrj 3 ай бұрын
Thoda pani pe leta hu, bohot pyaas lagi hai🤡
@singhscribe7450
@singhscribe7450 3 ай бұрын
Bhai mtt bna videos bht bekaar explanation h.
@GaneshBhutekar-nu1gd
@GaneshBhutekar-nu1gd 3 ай бұрын
I watched it 2-3 times before I fully understood the approach. I'm tired.
@bhatiasatwik
@bhatiasatwik 3 ай бұрын
sale "Shorted" nai "sorted" hota hai
@domnicdaniel5110
@domnicdaniel5110 3 ай бұрын
I not able to understand your language but i understand your code and logic thank you😊