- 7
- 23 698
Code With Ravinder
India
Приєднався 28 чер 2015
Hello everyone, Ravinder here.
I love to code and solve problems. I started this channel to give you insights on what goes into one's head while solving a coding problem. I'll teach you how to understand problems, approach to find solutions and implement them. I will use my past experience of different interviews, solving problems, programming languages, Data Structures and Algorithms and teach you the same. Hope this will help you to become a better programmer and grab placements and achieve your dream.
I love to code and solve problems. I started this channel to give you insights on what goes into one's head while solving a coding problem. I'll teach you how to understand problems, approach to find solutions and implement them. I will use my past experience of different interviews, solving problems, programming languages, Data Structures and Algorithms and teach you the same. Hope this will help you to become a better programmer and grab placements and achieve your dream.
Maximize The Sum | Hackerearth | Arrays | Hashing | DSA
This is a practice problem on Hackerearth.
Maximize The Sum is a very important and common problem asked by many companies among the top-notch too.
In this video, I will give you insights on what goes into one's head while solving a coding problem. I'll teach you how to understand problems, approach to find solutions and implement them.
In the end, I will explain some basic concepts of time and space complexity.
Timecodes
0:00 - Intro
0:38 - Problem Analysis
9:28 - Code Implementation
Hope this helps you to become a better programmer.
Please share your feedback in the comments.
If you like this video, give it a thumbs up to keep me motivated.
Subscribe for more such videos.
Share with your friends to spread more knowledge.
Thank You!
Problem Link: www.hackerearth.com/practice/data-structures/arrays/1-d/practice-problems/algorithm/maximize-sum-0423b95e/
LinkedIn: www.linkedin.com/in/ravinder-chauhan-2912b4169/
Maximize The Sum is a very important and common problem asked by many companies among the top-notch too.
In this video, I will give you insights on what goes into one's head while solving a coding problem. I'll teach you how to understand problems, approach to find solutions and implement them.
In the end, I will explain some basic concepts of time and space complexity.
Timecodes
0:00 - Intro
0:38 - Problem Analysis
9:28 - Code Implementation
Hope this helps you to become a better programmer.
Please share your feedback in the comments.
If you like this video, give it a thumbs up to keep me motivated.
Subscribe for more such videos.
Share with your friends to spread more knowledge.
Thank You!
Problem Link: www.hackerearth.com/practice/data-structures/arrays/1-d/practice-problems/algorithm/maximize-sum-0423b95e/
LinkedIn: www.linkedin.com/in/ravinder-chauhan-2912b4169/
Переглядів: 464
Відео
Print All Sub-Arrays for a given Array | DSA
Переглядів 8962 роки тому
Printing all Sub-Arrays for a given Array is a very basic but important problem asked by many companies among the top-notch too. In this video, I will give you insights on what goes into one's head while solving a coding problem. I'll teach you how to understand problems, approach to find solutions and implement them. In the end, I will explain some basic concepts of time and space complexity. ...
Print All Sub-Arrays for a given Array (Alternate Way) | DSA
Переглядів 12 тис.2 роки тому
Printing all Sub-Arrays for a given Array is a very basic but important problem asked by many companies among the top-notch too. In this video, I will give you insights on what goes into one's head while solving a coding problem. I'll teach you how to understand problems, approach to find solutions and implement them. . . . . Hope this helps you to become a better programmer. Please share your ...
Maximum Subset Sum | Hackerearth | Arrays Practice Problem | DSA
Переглядів 2,3 тис.2 роки тому
This is a practice problem on Hackerearth. Maximum Subset of Array is a very important and common problem asked by many companies among the top-notch too. In this video, I will give you insights on what goes into one's head while solving a coding problem. I'll teach you how to understand problems, approach to find solutions and implement them. In the end, I will explain some basic concepts of t...
Ransom Note | Arcesium | Hackerrank | Hash Table Practice Problem | DSA
Переглядів 8852 роки тому
This is a practice problem asked by Arcesium on Hackerrank. In this video I will give you insights on what goes into one's head while solving a coding problem. I'll teach you how to understand problems, approach to find solutions and implement them. In the end I will explain some basic concepts of time and space complexity. Timecodes 0:00 - Intro 2:25 - Problem Analysis 7:00 - Code Implementati...
Minimum Operations | Hackerearth | Arrays Practice Problem | DSA
Переглядів 2,1 тис.3 роки тому
This is a practice problem from Hackerearth. In this video I will give you insights on what goes into one's head while solving a coding problem. I'll teach you how to understand problems, approach to find solutions and implement them. In the end I will explain some basic concepts of time and space complexity. Timecodes 0:00 - Intro 0:15 - Problem Analysis 5:23 - Code Implementation 8:30 - Extra...
Non Decreasing Arrays | Hackerearth | Arrays Practice Problem | DSA
Переглядів 5 тис.3 роки тому
This is a practice problem from Hackerearth. In this video I will give you insights on what goes into one's head while solving a coding problem. I'll teach you how to understand problems, approach to find solutions and implement them. Hope this helps to become a better programmer. Its my first video so please share your feedback in the comments. If you like this video, give it a thumbs up to ke...
👍🏻👍🏻is there any way we can solve it in n*n using any data structure?? Btw your explanation is amazing . Thanks!
@@needsomeone3636 No, since just the total elements to print is even more than n*n.
Hloo bhaiya, we meet in bfit college.... thanks for your guidance and this vedios is very useful for us
It was nice to meet you guys. Happy to help always. 😇
Isn't there more efficient way to do it?
@@Abhi-sj4wg I think this is the most optimal way to do it. If you find anything better please let me know. 🤗
Hi sir, nice explanation can make all videos in the same way of explanation
@@rajenderreddykoduru7928 Hi, thank you for the feedback. 😀
bhai kaha job hai?
public class array_Question { static void subarray(int arr[]){ for(int i=0;i<arr.length;i++){ for (int j = i; j < arr.length; j++) { for (int k = i; k<=j; k++) { System.out.print(arr[k]+ " "); } System.out.println(" "); } } } public static void main(String[] args) { int arr[]={1,2,3,4,5}; subarray(arr); } }
The algorithm is good but it is not dynamic. if we use a different array of values the function will not give expected values
I have used arrray values equal to indexes just for simplicity and explanation. It will give the expected result. In the end I showed another example too. It will work for every array. Also you can checkout another way to solve same problem here ua-cam.com/video/SsHUK0_KPSk/v-deo.html&ab_channel=CodeWithRavinder
❤❤❤
❤❤❤
I will check out on the link
Bro if we run this code it is giving sub array but I want to know how i,j,k nd k are working here? int arr[]={1,2,3,4}; for(int i=0;i<arr.length;i++){ for(int j=i;j<arr.length;j++){ for(int k=i;k<=j;k++){ System.out.print(arr[k]);
That's what i tried to explain in the video 😅. But I have made a video on alternate way to solve this which might help you. ua-cam.com/video/SsHUK0_KPSk/v-deo.html&ab_channel=CodeWithRavinder
Use red pen ... blue makes ur writing invisble
Thank You for pointing out. I have made an alternate video for this. You can check it out here: ua-cam.com/video/SsHUK0_KPSk/v-deo.html&ab_channel=CodeWithRavinder
can anyone tell me why there is no {0,3} or {0,2} subarrays and likewise subarrays in his answers?
As I explained in the beginning Subarray is continuous (i.e. One after the other) part of an Array.
Much simpler way is !!! Start j from i , n run the third loop from start to end that is from i to j , that's all
I have explained the similar approach in this video. Please check it out. ua-cam.com/video/SsHUK0_KPSk/v-deo.html&ab_channel=CodeWithRavinder
the way you explain is so deep , it helps
Thank You 🙂
public void findSummArray() { int[] arr = { 5,3,4,2,7}; string result=""; for(int i=0; i<arr.Length; i++) { for(int j=i;j<= arr.Length; j++) { for (int k = i; k <j; k++) { result += arr[k].ToString() + ","; } result += " "; } } Console.WriteLine(result); } It Works .. My logic
Great
Can i have your contact details i.e number of email ?
Very helpful
Thank You 😇
Thanks bro
very helpful
Thank You 😇
thanks bud
✌
Well explained.
Thank you 🙂
Good work
Thank You 😀
Need Help In Coding Please Reply Soon.
Need Help In Coding Please Reply Soon.
Need Help In Coding Please Reply Soon.
Need Help In Coding And Reply Soon Plz.
Yes... Tell me
: there are n elements in an array . all the elements have their initial values , and their values increase with an element having a non zero value increasing the value of surrounding element by 2 each day.for example if the value of ith element is non zero then the value of(i-1) th element will get inceremented by 2 as well the value of(i+1) th element will get incremented by 2(if they exist) lets call the initial days,day0 and after that each consecutive will be reffered to as day 1,day2 and so on.now you have to find total extra value of all elements that would have been increased on day p compared to day 0(input 1st line :5 2 Sec line: 0 5 0 4 0 output- 24..] Plzzz solve this que
Given an array A of N integers A1, A2, A3,.... AN, you have to answer Q queries. Each query consists of two integers L and R ( 1< or equal to L < or equal to R < or equal to N) let Di be the smallest integer greater than 1 that divides Ai. Find out DL+DL+1+DL+2+..... +DR for each query.. (Explanation sample1 first query: D1+D2=2+2=4..... Sec D3+ D4+D5=2+17+2=21 Third D6 = 5 ( code in java)
Nice one bro👏
Thnks bro 😇
Hello make vedios from starting ( Hackerearth Dsa) nd make the playlist
Sir you make it more easy to understand Through your amazing explanation
💯💯
We'll done beta , keep it up 👍🏻👍🏻👍🏻💖🎉
👏👍
👍👍👍
coool 👍👍👍
explanation is too good 💯💯💯
Solve the maximize the sum hackerearth in java( with Array)and provide code
Please share me the question link.
@@codewithravinder6014 there is no option to share in UA-cam.. Plzzz go hackerearth Dsa problem Array and Que Maximize The Sum
@@ramamishra9502 Here is the link to solution www.hackerearth.com/submission/81042469/
@@codewithravinder6014 thnx but can u do this with only easy approach ( only with Array)
@@ramamishra9502 Its not possible to solve only by using Arrays in required Optimal Time Complexity. You need to use atleast ArrayList or Hashing. This question is not of basics, its a mistake from Hackerearth. You can confirm the same in discussions or editorial solution.
amazing dod thx ❤❤👌👌
😄✌
n you please do the seclore exam code
😇🙂 I have learnt alot from u,, the way make us understand basics of topics and problem solving skill ,,, are amazing really ,,, best teacher glad be your student
Glad to hear this😀
nice way of explaining things.. m your student from NS
Thank you Kishu 😀
Superb👍👍
Thnk you veere ❣️
Seems very easy after watching this, thankyou😇
Thank you 😀
Nicely explained 👌
Thank you 🙂
@@codewithravinder6014 sir can u please make a video on find the square root of a number without using inbuilt function by binary search.
@@Riteshkumar-ih7fj Sure will make in future. 😀
Awesome😄🔥🔥
Thanks 😇🔥
Very helpful videos, excited after watching these rockstar videos💪
Thanks 😁🤘
💫
❣️
Very well explained Sir🔥
Thank You 🔥🙌
Oh sir ... learn so many new things through this thank u sir .... me NEETU
Thank you 😀