Тёмный
JAVAAID - Coding Interview Preparation
JAVAAID - Coding Interview Preparation
JAVAAID - Coding Interview Preparation
Подписаться
I am Kanahaiya Gupta and currently working as a Software Engineer-||| in Walmart Labs.
I have started this channel to share my knowledge and experience for coding interviews.


JAVAAID is an educational initiative. It aims is to help people for building their foundation of core concepts Data Structures and Algorithms and to improve their coding skills by applying a practical approach to solve a problem which is very important because you can find the solution of any problem over the internet but there are very few resources which will tell you the approach to solve the problem.

I have just started with adding tutorials for HackerRank Solutions and many more things need to be added. We will add, as we will grow which definitely need your support. So do not forget to subscribe my channel . :)


We add tutorial every weekend. So stay tuned.!!

You can send your feedback to javaaid.connect@gmail.com

#programming #coding #problem-solving #coding-interviews #algorithms #data-structures
Common Child HackerRank Solution
16:50
4 года назад
Palindrome Index HackerRank Solution
11:45
4 года назад
Picking Number Hackerrank Solution
17:37
5 лет назад
New Year Chaos HackerRank Solution
23:56
5 лет назад
Комментарии
@gkarthik55
@gkarthik55 2 дня назад
Excellent😃
@OmshankarBaraulia-mk7uz
@OmshankarBaraulia-mk7uz 8 дней назад
Memory and Mamari me antar batay
@hamzakhan-ks4ry
@hamzakhan-ks4ry 11 дней назад
bro akheeeeeer..! fabulous.!
@ankit0tikna
@ankit0tikna 14 дней назад
What did you learn watching this video? Ans. Nothing.
@lokeshp4164
@lokeshp4164 24 дня назад
Well explained, thanks for the video.
@Shohan01
@Shohan01 26 дней назад
What if the s = ‘bac’ how does that match formula works?
@marceloleoncaceres6826
@marceloleoncaceres6826 28 дней назад
Thank you for the video, great explanation
@pablocorrera5360
@pablocorrera5360 Месяц назад
thank you so much, you explain the solution so well
@appikeeru5785
@appikeeru5785 Месяц назад
I didn't understand subarray
@manojkumarparuchuri5920
@manojkumarparuchuri5920 Месяц назад
thank you so much this is a great solution
@manojkumarparuchuri5920
@manojkumarparuchuri5920 Месяц назад
brilliant solution thank you so much
@bhartimandlik4838
@bhartimandlik4838 Месяц назад
Thank you sir 😊
@ashwini6740
@ashwini6740 2 месяца назад
grt explanation,tq
@AkshaySangolli
@AkshaySangolli 2 месяца назад
Excellent, but what if the a character is present in the middle of the string i.e. s = "bac"?
@ronaldomaia
@ronaldomaia 2 месяца назад
const repeatedString = (s, n) => { const countA = s => s.split('').filter(char => char === 'a').length; return countA(s) * Math.floor(n / s.length) + countA(s.slice(0, n % s.length)); }
@GandhiRaman-jt4sg
@GandhiRaman-jt4sg 2 месяца назад
Best Explanation sir!
@vaibhavgoyal4758
@vaibhavgoyal4758 2 месяца назад
Provide c code plz
@rishiraj2548
@rishiraj2548 2 месяца назад
15:00 excellent! thanks
@rajkumararora7366
@rajkumararora7366 3 месяца назад
Veey nice and great explanation. Only point that I am still trying to understand is how T(0) = 1? I am thinking like if 0 steps/stairs clumbed up then this should be 0.
@NateFreestyle
@NateFreestyle 3 месяца назад
HackerRank classifies this as easy? I'm not sure I agree with that.
@start1learn-n171
@start1learn-n171 3 месяца назад
Tq
@yashjain4270
@yashjain4270 3 месяца назад
public static int utopianTree(int n) { // Write your code here int H=0; for(int i =0 ; i<=n ; i++){ if(i%2 == 0 ){ H = H+1; }else{ H = 2*H; } } return H; }
@VugloTVTVVugloTVTV-jv8rk
@VugloTVTVVugloTVTV-jv8rk 3 месяца назад
Many thanks sir for sharing 🙂
@averychen4633
@averychen4633 3 месяца назад
you logic is only correct for a sorted array. if the array is 1, 3, 9,9,9, 3,27, 81. The second 3 can not form a (1,3,9) triplets.
@jn2869
@jn2869 4 месяца назад
Great teaching, you are awesome, keep up the good work
@shashankmishra001
@shashankmishra001 4 месяца назад
Great explanation ❤
@law5
@law5 4 месяца назад
Your explanation on this topic was very clear. Keep it up!
@sebajean-baptiste6240
@sebajean-baptiste6240 4 месяца назад
I know this is old. But I struggled to understand this solution. Elegant, but a bit complicated. I did it a different way that might be easier to understand. At least for me. public static void main(String[] args) { for (int period = 0; period < 9; period++ ) { int c = cycle(period); int result = period % 2 == 0 ? calculate(c) : calculate(c) - 1; System.out.println( period + " : " + result); } } public static int cycle(int period) { if( period % 2 == 0) return period / 2; return (period + 1) / 2; } public static int calculate(int cycle) { return Double.valueOf(Math.pow(2, cycle + 1)).intValue() - 1; }
@interpreter.py.
@interpreter.py. 4 месяца назад
My lecturer took 4 hours to explain this, now I am thinking about a refund for my tuition as I still could not understand him
@LucianoBAF
@LucianoBAF 4 месяца назад
So it's more of a math trick than code logic... I wonder if the majority of RackerRank problems are like this.
@kiitmo
@kiitmo 4 месяца назад
Thanks, you made the problem very easy to understand
@renatomdemello
@renatomdemello 5 месяцев назад
Thanks a lot.
@tallurivamsi6413
@tallurivamsi6413 5 месяцев назад
Great explanation Sir.really commendable.....Thank you for your effort and making us learning....
@eddiephiri1763
@eddiephiri1763 5 месяцев назад
Still relevant today! Clearly explained and easy to follow! Great work!
@claudelounou9925
@claudelounou9925 5 месяцев назад
thanks you very much ❤❤
@danishmichael6953
@danishmichael6953 5 месяцев назад
public class RecursiveSum { static int [] result; public static void main(String[] args) { // TODO Auto-generated method stub int [] nums = {1,2,3,4,5,6,7}; result = new int [nums.length]; System.out.println(solutionOne(nums, nums.length-1)); System.out.println(Arrays.toString(result)); } private static int solutionOne(int[]nums, int i) { // TODO Auto-generated method stub if(i == 0) result[i] = nums[0]; else result[i] = nums[i] + solutionOne(nums, i-1); return result[i]; } }
@davidtemidayo8541
@davidtemidayo8541 6 месяцев назад
Hello, thank you for this tutorial, i was able to write this using javaScript and it works function evaluateValue(s,n){ const sLength = s.length; const quotient = Math.floor(n / sLength); const r = n % sLength; const freqA = s.match(/a/g).length; const useRemainder= (r > 0) ? s.slice(0, r).match(/a/).length : 0 const a = quotient * freqA + useRemainder; return a; } evaluateValue("abc", 1000000000000);
@kiranvr5570
@kiranvr5570 6 месяцев назад
if Travarsing from the last index and If 'i'th element is selected is this not the formula, val[i]+maxV(i-1,C-w[i]); Please correct me if I am wrong.
@iezioaudi22
@iezioaudi22 6 месяцев назад
Thanks!
@iezioaudi22
@iezioaudi22 6 месяцев назад
great video covering the basics!
@iezioaudi22
@iezioaudi22 6 месяцев назад
Thanks!!!!!!
@iezioaudi22
@iezioaudi22 6 месяцев назад
thank you!!!!
@iezioaudi22
@iezioaudi22 6 месяцев назад
thank youu!!!
@isharacooray7193
@isharacooray7193 6 месяцев назад
Thanks for the tutorial.. We also can write a more concise code using java 8 string s = abc; int n=10; while(s.length()<=n){ str=str+str; } long aCount = str.substring(0,n).chars().mapToObj(c -> (char)c).filter(ch -> ch.equals('a')).count();
@kraisk
@kraisk 6 месяцев назад
That's quite easy if you use an additional array. Now, try to do this in place.
@khii_khii
@khii_khii 6 месяцев назад
best one
@TopprGuy
@TopprGuy 7 месяцев назад
trust me , this old video is more concept clearing than paid courses
@sangeethak8866
@sangeethak8866 7 месяцев назад
i understood it and i enjoyed :) learning this
@jhonhernandez9210
@jhonhernandez9210 7 месяцев назад
I couldn't understand much cause of tha english with indian accent
@KARTHIKO11
@KARTHIKO11 7 месяцев назад
Hi @JavaAidTutorials, Thank for Explanation, Nice Work.