brother i have a question and i am in problem please help , is it necessary to learn Advanced Java for competitive programming, if yes then which course will be the best to learn advanced Java programming?
It is not necessary for competitive programming. Questions asked in competitive programming can be solved if you have the knowledge of data structures and algorithm. When you are using java as programming language for solving these problems then you should have the knowledge of the collections and implementation of the DS in java for eg if you have to use a queue in java then you should know that queue is implemented using a linkedlist and you should have the knowledge of the methods provided. But if your moto is to learn java in whole, then yes advance java is a must. There are many channels on youTube or tutorials on sites like geeksforgeeks, tutorialpoints etc to get you started with advanced java concepts. I would recommend you learn topics like multi threading, synchronization thoroughly, because if you are targeting companies like JP Morgan, Goldman Sachs, Wells Fargo etc. questions related to these topics are asked.
@@TheTechGranth thank you so much brother, and Which language should I learn C++ or java for CP, and can you please suggest me some good resources for learning C++ for CP with Database and Algorithms, because I don't have a good financial status so that I am not able to buy courses
@@AmirKhan-uh5vd Lot of competitive programmers are just college pass out so they prefer C++ on the other hand working software professional may prefer java. I use java. For c++ you can find a lot of material online free of cost. My personal opinion : language does not matter as long as you have good understanding of OOPS, DS, Algo and System Design.
brother i have a question and i am in problem please help , is it necessary to learn Advanced Java for competitive programming, if yes then which course will be the best to learn advanced Java programming?
It is not necessary for competitive programming. Questions asked in competitive programming can be solved if you have the knowledge of data structures and algorithm. When you are using java as programming language for solving these problems then you should have the knowledge of the collections and implementation of the DS in java for eg if you have to use a queue in java then you should know that queue is implemented using a linkedlist and you should have the knowledge of the methods provided.
But if your moto is to learn java in whole, then yes advance java is a must. There are many channels on youTube or tutorials on sites like geeksforgeeks, tutorialpoints etc to get you started with advanced java concepts. I would recommend you learn topics like multi threading, synchronization thoroughly, because if you are targeting companies like JP Morgan, Goldman Sachs, Wells Fargo etc. questions related to these topics are asked.
@@TheTechGranth thank you so much brother, and Which language should I learn C++ or java for CP, and can you please suggest me some good resources for learning C++ for CP with Database and Algorithms, because I don't have a good financial status so that I am not able to buy courses
@@AmirKhan-uh5vd Lot of competitive programmers are just college pass out so they prefer C++ on the other hand working software professional may prefer java. I use java. For c++ you can find a lot of material online free of cost. My personal opinion : language does not matter as long as you have good understanding of OOPS, DS, Algo and System Design.
@@TheTechGranth okay brother thank you so much
how do we solve this in c++
even C++ supports stack, so you just need to apply the formula i showed at 4:05, hope you understood the approach.