Print All Sub-Arrays for a given Array (Alternate Way) | DSA
Вставка
- Опубліковано 18 вер 2024
- 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 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!
LinkedIn: / ravinder-chauhan-2912b...
Oh sir ... learn so many new things through this thank u sir .... me NEETU
Thank you 😀
the way you explain is so deep , it helps
Thank You 🙂
Bahut bdhiya bhai...explanation is excellent ...✌️
Thank you Bhai ❣️
Nice one bro👏
Thnks bro 😇
nice way of explaining things.. m your student from NS
Thank you Kishu 😀
Chaa gaye Gurujii 🙌🙌
Thanks 🙌🙌
Amazing
Thanks Bhai ❣️
Keep it up 🔥🔥🔥 well explained
Thanks Bhai ❣️
Awsome 🔥🔥🔥🔥
Thanks @Athar 😀
nice lecture sir
Thanks @Sagar ❣️
Well explained.
Thank you 🙂
Well explained 💥💥
Thanks bhai 🤘
amazing dod thx ❤❤👌👌
😄✌
Very helpful
Thank You 😇
public class array_Question {
static void subarray(int arr[]){
for(int i=0;i
Well explained bro ❤️
Thanks bro ❣️
❤❤❤
thanks bud
✌
👍🏻👍🏻🔥
😃
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
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
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
bhai kaha job hai?
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
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
Hello sir
Hi @Subhrajit
public void findSummArray()
{
int[] arr = { 5,3,4,2,7};
string result="";
for(int i=0; i
Great
very helpful
Thank You 😇
❤❤❤
I will check out on the link