Bro how to apply data analyst job for freshers ?? when openings be for data anayst role in amazon?? pls tell me bro
@sakshigupta69504 күн бұрын
My is for 3 months in phonepay will I get PPO they said we can't say right now
@harshitbachkheti3768 күн бұрын
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(); } }
@harshitbachkheti3768 күн бұрын
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_meghav13 күн бұрын
bhai muje tumhara content babber or straiver se bhi jaada accha lagta hai. seedhi baat , no bakwaas.
@joeroot-p6y16 күн бұрын
I think we can keep track of first non repeating character and update it accordingly. By this we can solve in O(n)
@aaryanyadav373220 күн бұрын
just learn the code and record it on youtube
@McBc-g4o20 күн бұрын
corner cases is not covered,
@harshitdeval412021 күн бұрын
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_121 күн бұрын
Did you take interview preparation course or Competitive programming course of Coding blocks
@umeshkaushik71025 күн бұрын
bhai tum na gym gaye na tumne coffee pii hai, natak kyu ye samjhe nhi aaya bus
@lordmavin546427 күн бұрын
mast samjhaya h bhai!
@nikhilbhu558427 күн бұрын
nice explaination
@JyotiGupta-gu5kkАй бұрын
I have a question
@juturtaur298Ай бұрын
Thank you🙏😊
@BhumiiGowdaaАй бұрын
Sir can you share all the resources plz It will help me so much
@gagan69Ай бұрын
I received assignments mail, please help me
@deepaksingh-qd7xmАй бұрын
yr koi tabulation bata hi ni r h
@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Ай бұрын
Bhai reply aya?mene bhi kia tha kuch shortlist hue?
@viralinfo8051Ай бұрын
Bhai mene bhi apply kia tha assignment kra kuch shortlist ya reply aya h?
@chayankdasАй бұрын
@@viralinfo8051 nhi bhai, kuch nhi aaya abhi tk
@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Ай бұрын
Asa lgta hai ap he confuse hore hore ho 😢
@sakshikumari4287Ай бұрын
Can u help me in my assignment
@AgeNtX071Ай бұрын
🤣kuch bhi
@asish8880Ай бұрын
Bro, I also had an Assignment. Did you get any Call?
@zanies628823 күн бұрын
Did you get anything after submitting the assignment@@asish8880
@jatinshilenАй бұрын
Given 80 hour workweeks that an hourly equivalent to 60000 pm for a 40 hour job 😂
@HarshitJain-cy7ndАй бұрын
bakwaaaas explanation
@rishi4307Ай бұрын
focus more on dry run than the code , that would make the learning more easy!!