Тёмный

Separate the Numbers HackerRank Solution 

JAVAAID - Coding Interview Preparation
Подписаться 38 тыс.
Просмотров 26 тыс.
50% 1

Опубликовано:

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 64   
@JavaAidTutorials
@JavaAidTutorials 5 лет назад
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 ..!!
@annesyabanerjee1892
@annesyabanerjee1892 3 года назад
my programming logic still is not improving pls help me i am totally give up in coding
@zoserquenaya3193
@zoserquenaya3193 Год назад
I really got complicated with this problem, after solving it. I'm glad to find a more elegant solution. thank you
@srinivasasowmiyan2272
@srinivasasowmiyan2272 4 года назад
This particular problem shouldn't be classified as easy at all!
@JavaAidTutorials
@JavaAidTutorials 4 года назад
haha...completely agree. I think you should have write a letter to hackerrank about this..😜
@anirbandebnath4
@anirbandebnath4 5 лет назад
Good improvement in the quality of tutorials over past months ... Keep it up friend !!
@JavaAidTutorials
@JavaAidTutorials 5 лет назад
thanks @Anirban for the feedback. I am glad to know that i am improving..:)
@badarikrishna3169
@badarikrishna3169 4 года назад
Hi Kanhaiya, whenever I need help I visit your channel because the explanation is so simple that I can catch easily. Keep going buddy..!! 🙌🙌✌️✌️
@JavaAidTutorials
@JavaAidTutorials 4 года назад
thanks a lot for such a nice feedback. I am glad that my knowledge is helping others in their journey.
@ankitbishwas
@ankitbishwas 4 года назад
its great video, after all, we need to know logic building of the problem and your discussed well.
@JavaAidTutorials
@JavaAidTutorials 4 года назад
Thanks for the feedback 😊
@KaushalJainKaushalRameshJain
@KaushalJainKaushalRameshJain 5 лет назад
Very inspiring and great work. Keep going
@JavaAidTutorials
@JavaAidTutorials 5 лет назад
Thank you..Kaushal.. If you find it useful, please do share with others.
@ramyabl6753
@ramyabl6753 4 года назад
Understandable video sir... Can u please display full ecclipse window so we can see that program also ....so we can run in ecclipse also
@JavaAidTutorials
@JavaAidTutorials 4 года назад
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. 🙂
@siddhantrawat1588
@siddhantrawat1588 2 года назад
Great Tutorial Sir!! I have a doubt; if the length of string s is at max 32(given in ques.) then, in the outer loop for the condition " i
@cant-stand-ya
@cant-stand-ya Год назад
That's why you need to use 'long', not 'int'.
@Deepak-hv8uh
@Deepak-hv8uh 9 месяцев назад
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
@shivagitam6332
@shivagitam6332 10 месяцев назад
Hey Kanhaiya, What was the time and space complexity for this approach?
@surekham8944
@surekham8944 5 лет назад
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.
@JavaAidTutorials
@JavaAidTutorials 5 лет назад
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..
@surekham8944
@surekham8944 5 лет назад
@@JavaAidTutorials thank you javaaid for your detailed explanation, It's really helpful.
@JavaAidTutorials
@JavaAidTutorials 5 лет назад
most welcome..:)
@DavePueyoCarter
@DavePueyoCarter 3 года назад
Great video, thank you very much!
@JavaAidTutorials
@JavaAidTutorials 3 года назад
Glad it helped!
@AbdulRahim-fn9lc
@AbdulRahim-fn9lc 2 года назад
aww thats a clean code man.........:)
@nkvideos5307
@nkvideos5307 2 года назад
very nice explainationn
@anirbandebnath4
@anirbandebnath4 5 лет назад
One minor recommendation If you could get rid of the IDE and show the program snippet in the canvas.
@JavaAidTutorials
@JavaAidTutorials 5 лет назад
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.
@midyaazad7215
@midyaazad7215 2 года назад
very nice explanation
@ravinderyadav4809
@ravinderyadav4809 3 года назад
it was helpful thanku.
@JavaAidTutorials
@JavaAidTutorials 3 года назад
Most welcome 😊
@fathimasyed4232
@fathimasyed4232 9 месяцев назад
this is great .
@pradeepmondal4943
@pradeepmondal4943 4 года назад
simple java solution public static String check(String s) { int n=s.length(); if(n==0 || n==1) return "NO"; for(int i=0 ; i
@saisukumar2034
@saisukumar2034 Год назад
thanks bhai
@sureshbobby2298
@sureshbobby2298 4 года назад
How did you approach the solution. How long you took Brilliant
@JavaAidTutorials
@JavaAidTutorials 4 года назад
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.
@sanandapodder5027
@sanandapodder5027 5 лет назад
I am very weak in coding . When i open hackerrank i do not understand anything sir. Can you suggest me from where i can start?
@JavaAidTutorials
@JavaAidTutorials 5 лет назад
Read the basic concepts ( ds algo) first then jump into problem solving on hackerrank.
@sanandapodder5027
@sanandapodder5027 5 лет назад
@@JavaAidTutorials thank you very much sir
@JavaAidTutorials
@JavaAidTutorials 5 лет назад
Welcome ..:)
@anilkumar-yk5uz
@anilkumar-yk5uz 2 года назад
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.
@psgzzangtubepsgzzangtube
@psgzzangtubepsgzzangtube Год назад
what is the time complexity?
@aviralsrivastava2050
@aviralsrivastava2050 4 года назад
its a great video
@JavaAidTutorials
@JavaAidTutorials 4 года назад
Thanks you 😊
@ravipanchal2259
@ravipanchal2259 5 лет назад
Great work, thanks
@JavaAidTutorials
@JavaAidTutorials 5 лет назад
Most welcome..!!
@pradeepmondal4943
@pradeepmondal4943 4 года назад
thank you sir , for your great explaination
@JavaAidTutorials
@JavaAidTutorials 4 года назад
You are most welcome
@saketjoshi2287
@saketjoshi2287 4 года назад
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)
@JavaAidTutorials
@JavaAidTutorials 4 года назад
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.
@anujsatish1467
@anujsatish1467 3 года назад
@@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
@anujsatish1467
@anujsatish1467 3 года назад
Please reply to my doubt..
@sun_to_fun
@sun_to_fun 4 года назад
No solutions for leetcode problems
@JavaAidTutorials
@JavaAidTutorials 4 года назад
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
@vinaya1980 5 лет назад
I wrote this logic in C++, the code doesn't succeed for all test cases provided in hackerrank.
@JavaAidTutorials
@JavaAidTutorials 5 лет назад
Did you use the same algorithm which i have discussed in above tutorial?
@vinaya1980
@vinaya1980 5 лет назад
@@JavaAidTutorials yes.....I did
@JavaAidTutorials
@JavaAidTutorials 5 лет назад
Can you share your code? I do not know much about C++ but can try..
@JavaAidTutorials
@JavaAidTutorials 5 лет назад
@@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.
@vinaya1980
@vinaya1980 5 лет назад
@@JavaAidTutorials Hey, thanks. That worked.
@vaibhavgoyal4758
@vaibhavgoyal4758 4 месяца назад
Provide c code plz
@exe.m1dn1ght
@exe.m1dn1ght Год назад
My IQ was too low to figure this out alone.. I'm dissappointed ..
Далее
New Year Chaos HackerRank Solution
23:56
Просмотров 52 тыс.
Love letter mystery
25:48
Просмотров 1,3 тыс.
Climbing The Leaderboard HackerRank Solution
26:04
Просмотров 34 тыс.
Common Child HackerRank Solution
16:50
Просмотров 37 тыс.