Пікірлер
@shilpashetty8034
@shilpashetty8034 10 күн бұрын
U deserve many likes on your videos
@shilpashetty8034
@shilpashetty8034 10 күн бұрын
Bro what is your name your teaching style is very different❤
@paracetamol5031
@paracetamol5031 12 күн бұрын
can uu provide me more fidelity problems? I have interviews
@user-pk8wi3of6t
@user-pk8wi3of6t 14 күн бұрын
Best explanation
@AKASHKUMAR-mv1jz
@AKASHKUMAR-mv1jz Ай бұрын
very bad Explanation
@dilipsutar9931
@dilipsutar9931 Ай бұрын
hey but what about duplicate numbers ,
@pradeepnm9105
@pradeepnm9105 Ай бұрын
Thank you na
@codeio-english
@codeio-english Ай бұрын
🤩
@SanthoshSan-vb4rp
@SanthoshSan-vb4rp Ай бұрын
Its too late to reply ,but Nice explanation...
@codeio-english
@codeio-english Ай бұрын
🤩🤩
@griffin5631
@griffin5631 Ай бұрын
sir what is the difference between this problem and the 3 sum problem of leetcode , cuz when i submit same code there i get memory limit exceeded
@sabreayub8876
@sabreayub8876 Ай бұрын
C return interview questions batao bro kya kya pucha jata hai
@ArunKumar-vd8zt
@ArunKumar-vd8zt Ай бұрын
more optimized package HASHING; import java.util.HashMap; import java.util.HashSet; public class CheckEqualArrays { public static void main(String[] args) { int [] arr1 = {1,2,5,4,0}; int [] arr2 = {2,4,5,0,1}; HashMap<Integer,Integer> freq = new HashMap<>(); CheckEqualArrays obj = new CheckEqualArrays(); boolean result = obj.isEqualArray(freq, arr1,arr2); System.out.println(result); } private boolean isEqualArray(HashMap<Integer,Integer> freq,int [] arr1,int [] arr2) { int n1= arr1.length; int n2=arr2.length; if(n1!=n2) return false; int start=0; int end=n1-1; while(start<end) { freq.put(arr1[start],freq.getOrDefault(arr1[start],0)+1); freq.put(arr2[start],freq.getOrDefault(arr2[start],0)-1); freq.put(arr1[end],freq.getOrDefault(arr1[end],0)+1); freq.put(arr2[end],freq.getOrDefault(arr2[end],0)-1); ++start; --end; } for (int x: freq.values()) if(x!=0) return false; return true; } }
@shajinshan
@shajinshan 2 ай бұрын
class GfG { //Function to locate the occurrence of the string x in the string s. int strstr(String s, String x) { for(int i = 0;i<s.size() ; i++){ if(s[i] == x[0]){ for(int j=0;j<j.size();j++){ if(s[i+j] == x[j]){ if(j == x.size()-1){ return i; } continue; } else { break; } } } } return -1; }//method }//class
@shajinshan
@shajinshan 2 ай бұрын
if it possible use of [ ] for chatAt()
@dhruvsingh1837
@dhruvsingh1837 2 ай бұрын
Really good explanation
@DarshanDarshu-mb9cc
@DarshanDarshu-mb9cc 2 ай бұрын
What is interpreter
@Rahul-jl2ex
@Rahul-jl2ex 3 ай бұрын
love your explaination...
@soujannyadeb2415
@soujannyadeb2415 3 ай бұрын
public static int zerotofive(int n){ int copy=n; int mul=1; while(n>0){ // Corrected condition int digit=n%10; if(digit==0){ copy+=mul*5; } mul=mul*10; n=n/10; } return copy; }
@RAHUL_Supermacy_08
@RAHUL_Supermacy_08 3 ай бұрын
Tamil ku English ku nu thainiya content makes ahaa 🛐🚀💥🔥
@RAHUL_Supermacy_08
@RAHUL_Supermacy_08 3 ай бұрын
Bruhh 🤞🏻 Nice 💥
@user-wo5rd8qk2o
@user-wo5rd8qk2o 3 ай бұрын
great explaination.
@patelkrish2646
@patelkrish2646 4 ай бұрын
There is a little correction in the code The corrected version is class Solution { public boolean isBoomerang(int[][] points) { int dx1 = points[1][0] - points[0][0]; int dx2 = points[2][0] - points[1][0]; int dy1 = points[1][1] - points[0][1]; int dy2 = points[2][1] - points[1][1]; return ((dx1 * dy2) != (dx2 * dy1)); } }
@RameshKumar-ng3nf
@RameshKumar-ng3nf 5 ай бұрын
I havent see anybody explaining it in such simple way. Hats off to your great explanation 🙏 any beginner can understand easily.
@rinkirawat4978
@rinkirawat4978 5 ай бұрын
thank you
@sukumarsai3397
@sukumarsai3397 6 ай бұрын
nice explanation earned a Sub continue the great work
@krishnadahule-gw7wd
@krishnadahule-gw7wd 6 ай бұрын
Same same bro 😊
@krishnadahule-gw7wd
@krishnadahule-gw7wd 6 ай бұрын
♾️
@krishnadahule-gw7wd
@krishnadahule-gw7wd 6 ай бұрын
Like is output 😊
@krishnadahule-gw7wd
@krishnadahule-gw7wd 6 ай бұрын
At first iteration condition will false and value of i is incremented by 1 then output is 65001
@krishnadahule-gw7wd
@krishnadahule-gw7wd 6 ай бұрын
I know I'm not too late Ans:14 2*6=12+2=14 😊
@krishnadahule-gw7wd
@krishnadahule-gw7wd 6 ай бұрын
Infine loop q ki while condition kabhi false hogi hi ni
@krishnadahule-gw7wd
@krishnadahule-gw7wd 6 ай бұрын
Let me correct output will be 3 2 1
@krishnadahule-gw7wd
@krishnadahule-gw7wd 6 ай бұрын
I think we use stack concept here So first push sequence is 1 2 3 And pop sequence is 3 2 1 So output will be 3 😊
@krishnadahule-gw7wd
@krishnadahule-gw7wd 6 ай бұрын
I'm not late 😢
@krishnadahule-gw7wd
@krishnadahule-gw7wd 6 ай бұрын
2 1 Output
@krishnadahule-gw7wd
@krishnadahule-gw7wd 6 ай бұрын
Output is 2 Return 0 is for our program is successfully executed Not for printf statement
@krishnadahule-gw7wd
@krishnadahule-gw7wd 6 ай бұрын
I know it is not too late for me ❤
@krishnadahule-gw7wd
@krishnadahule-gw7wd 6 ай бұрын
54321 is answer sir 😊
@krishnadahule-gw7wd
@krishnadahule-gw7wd 6 ай бұрын
Cannot store string in a char data type
@krishnadahule-gw7wd
@krishnadahule-gw7wd 6 ай бұрын
Throw error 😢
@Gamersingh2050
@Gamersingh2050 6 ай бұрын
this code show time limit exeed same problem
@harshini099
@harshini099 6 ай бұрын
Bro besant technology chennai velacherry la online data science course panalama is it worth
@user-zk3cn9vi6x
@user-zk3cn9vi6x 6 ай бұрын
bro where did u learn complete DSA i mean all topics like stack, queue, linked list and other algorithms
@makarandpatil1183
@makarandpatil1183 6 ай бұрын
thanks bro
@akhilkanwar7022
@akhilkanwar7022 7 ай бұрын
thanks bro , will try to solve question using your videos
@bairavin266
@bairavin266 7 ай бұрын
Brother! Is it right that when the stack is empty top=-1?
@galavizK
@galavizK 7 ай бұрын
Thanks for the explanation ❤
@jayaramalukunta720
@jayaramalukunta720 8 ай бұрын
Good explanation
@user-eq3qn9hm3e
@user-eq3qn9hm3e 8 ай бұрын
thank you bro