Hey Every one, If you find this tutorial helpful, please do not forget to like, comment, share and It would be great if you can leave your feedback about the tutorial, as I have put a lot of hard work to make things easy for you. Thanks ..!!
thanks for your feedback. If you are interested to see my code you can check out my git hub repository where i will share all the source code. Read out the video description to know more. 🙂
also don't use stoi() to convert such long string to int, rather use stoll() to convert into long long type, then store in a variable of long long type, was getting error due to this while implementing in C++, @@cant-stand-ya @siddhantrawat1588
Hello jaavid, I'm so happy that I could find some easy solution here of hacker rank. But I really wanted to know the real scenario of hacker rank and are really companies accepting the good score and giving opportunity? And in which country there are more opportunities. I request you this.
Hackerrank is all about practicing ds algorithms. It's not mandatory to solve only hackerrank problem. You can explore other platforms as well like hackerearth, codechef etc. And if you talk about company, they don't check your scores on these platforms. But having a good score on such platforms give you an advantage over those who don't have anything to show. But some companies might be interested in your github to know more about your skill or contribution towards open source. Now a days most of the companies uses hackerrank for their first rounds so it's better to get use to it..
Intially i started hackerrank platform editor for coding but based on people demand i moved to IDE..😊 Because some people mentioned that with help of IDE its easy to get which functions or property is pre-written and provided by the java env. So they can either use alternate library in their preferred programming language or write it manually. Which can be difficult, if i write on canvas. But i will take your feedback and put it on poll. Let's see.
practice makes a man perfect..!! but honestly I did not get optimal solution every time but before making the tutorial i make sure, i know the optimal solution and try to explain the same in simple words.
I partially understood the question and stuck. Later searched every link in google for answer. I opened your video casually and my dear brother am very much happy my choice of choosing gave me the best ever approach for a problem which I stuck. You won a whole hearted subscriber.
Exception in thread "main" java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Long.parseLong(Long.java:601) at java.lang.Long.parseLong(Long.java:631) at Solution.separateNumbers(Solution.java:19) at Solution.main(Solution.java:43)
probably you will be doing some mistakes or may be you have now followed the complete tutorial, would recommend try cross verifying your solution with ours or paste your code here so that people can help you out.
@@JavaAidTutorials Even i got the same error though i copied the same code you have shown in the vedio. Although now i have solved the question through my method but i want to know what was the mistake in your code. Please once check your code and let us know if your code is right. And if it is right then i must have gone wrong
We have leetcode problem solutions also but it may not have leetcode in title. It may have given general name -ex-house robber , recursive staircase, LCS etc. Mostly dynamic programming problems. Have a look on dynamic programming for beginner playlist, you will learn a lot.
@@vinaya1980 I just reviewed your code and found you are using stoi() instead of stol(). just replace line #9 long num = stoi(substring); with long num = stol(substring); will pass all your test cases.