Lecture 9: Introduction to Arrays in C++

preview_player
Показать описание
In this Video, we are going to learn about Arrays, Reversing an Array and Linear Search

There is a lot to learn, Keep in mind “ Mnn boot karega k chor yrr apne se nahi yoga ya maza nahi para, Just ask 1 question “ Why I started ? “
Coding Ninjas

Homework: Added in Video already

Telegram Group Link: Love Babbar CODE HELP

Do provide you feedback in the comments, we are going to make it best collectively.

Connect with me here:

Intro Sequence: We have bought all the required Licenses of the Audio, Video & Animation used.

Timestamps:

00:00 - Introduction
03:10 - Promotion
04:18 - What is Array ?
09:05 - Why array ?
11:25 - Declaring Arrays
14:04 - Indexes in Array
16:36 - Accessing in array
17:55 - Initialisation in Arrays
20:11 - Homework
20:55 - Implementation
32:32 - Arrays with Functions
39:56 - Different types of Arrays
43:31 - Maximum/Minimum in an Array
54:10 - Scopes in Array
57:56 - Why arr[0] changed in main function ?
01:02:08 - Homework
01:04:44 - Linear Search
01:14:07 - Reverse an Array
01:27:31 - Some Question for next Video

#DSABusted #LoveBabbar
Рекомендации по теме
Комментарии
Автор

The fact that you are teaching not only "How" but also "Why" makes this tutorial even better.

tribhuwanjoshi
Автор

no one can beat the quality and value of your content even after a year this playlist is the best <3

Not__Sid
Автор

bhaiya, i think the most important thing in this course is you are developing intuition and how to think or approach to a particular question along with how can we relate with things that we are already learnt. Amazing

int_topics
Автор

This course is a great initiative; many CSE students are struggling because of DSA. It's so kind of you to consider others and devote yourself to creating this course. Thank you so much, it means a lot bhaiya.

yadvibhalla
Автор

You are the best teacher anyone can have. With such a good vibe and energetic voice.
Thanks for always pushing us and keeping us motivated

fahadrashid
Автор

Jo chij UNIVERSITY ki professor nahi samjha paaye wo aapne samjha diya ek dam depth. Thank you so much bhaiya

shambhumaurya
Автор

SIR, YOUR TEACHING IS ABSOLUTELY BRILLIANT, YOU ARE NOT JUST TEACHING TOPICS BUT ALSO SOLVING A LOT OF QUESTIONS FOR OUR PRACTICE WHICH MOST OF THE TEACHERS DON'T. THANKS FROM THE BOTTOM OF MY HEART. KEEP GOING!

aliabbasnaqvi
Автор

Homework

#Question 1: (20:11)
We can initialize the array with any value by using the fill_n command

Example code:

#include<iostream>
using namespace std;

int main() {
int array[100];

//To initialize the array with value'1'.
fill_n(array, 100, 1);

//To check the array input (kewaal 5 hi kari h print)
for(int i = 0; i <= 5; i++){
cout << array[i] << endl;
}

}
//This is one of the method and the 'for loop' can also be used
but it is does not looks good and professional.

#Question 2: (1:02:52)
To calculate the sum of all the elements in the array
Code:
#include<iostream>
using namespace std;

int sumArr(int arr[], int n){
int sum = 0;
for(int i = 0; i<n; i++){
sum+=arr[i];
}
return sum;
}

int main() {
int a[100], n;
//Taking the size of the array
cin>>n;
//Taking the array from the user
for(int i = 0; i<n; i++) {
cin>>a[i];
}
cout<<"The sum of all the elements in the array is: " << sumArr(a, n) << endl;
}


gmail = 03kartikgupta

kartikgupta
Автор

my friend pushpendra suggest me to watch your videos 2 years ago but after 2years i finally started watching your videos kudo to me and my friend.

prashant.y
Автор

late to the party but this series is the best I've found for free. The way you teach seems more like group discussion where we get to say or think from different perspective.

amishasharma
Автор

I was eagerly waiting for this!!!
Thank you so much
You are the best teacher
Keep posting all the videos!

rameshwari
Автор

1:26:00 for reversing the array
void reverseArray(int arr[], int n)
{

cout << "printing the reverse array" << endl;
for (int i = 1; i <= n; i++)
{
int a = n - i;
cout << arr[a] << " ";
}
cout << endl;
}

aksv_
Автор

12th me alakh pandey sir or college me Love Babbar sir, kya lucky hai bhai hum log😍!

karthikhkamath
Автор

I already know C++ but after following your course I learn some new concepts which other have not cover thanks to you bhaiya :)

piyushsatange
Автор

I started watching this playlist after 9 months, regretting why I didn't see this before
Such a good explanations, thank you!!

akashbr
Автор

u r the best sir, literally...u did your best in this course and u deserve much more views in this series

ellis-prhh
Автор

Thanks for teaching this valuable course for free bhayya ❤
it's more worth than a paid course 💯

vishalvardhan
Автор

Great content! Would love to see leetcode contest problems solving sessions after covering some basic DS concepts :)

priya
Автор

int num[10]={3, 5, 6, 7, 8, 9, 0};
int size=7;
for(int i= size-1; i>=0; i--){
cout<<num[i]<<"\t";
}
we have use this method also for reversing the array.

CodeingJourney
Автор

now shifted to java but your explanation of questions is way to good using your videos as a reference thanks for this amazing free course

Luffy_