Lecture 37 Vector Class in STL in C++ Hindi

  Рет қаралды 210,634

C++ by Saurabh Shukla Sir

C++ by Saurabh Shukla Sir

Күн бұрын

Пікірлер: 210
@padmalayajena3593
@padmalayajena3593 6 жыл бұрын
Sir aap mere liye vardaan ho...Im going through such a phase in my life where none of my teachers are helping me out.. But this 44:30 min of your video has releaved me from lots of stress... Dhire Dhire I will learn everything from here only now... Love you sir.. Would never forget you In life.. Today I literally cried in class just because computer being my fav subject seemed very hard and confusing to me.. N when I ask my teachers they put me in in more confusion.. You are devta to me sir... I bow to you with folded hands!
@comradepeter87
@comradepeter87 5 жыл бұрын
I can feel you bro
@yasssh7835
@yasssh7835 5 жыл бұрын
@@comradepeter87 didi h bhai voh
@kunalpantkp
@kunalpantkp 5 жыл бұрын
It happens sometimes when everything seems to be very tough and confusing. I can feel your pain. Never Stop learner because good things take time. Wishing you are bright future. Greets from Delhi.
@sandeepkumawat4982
@sandeepkumawat4982 4 жыл бұрын
you made me cry
@jasmeetsidhu2147
@jasmeetsidhu2147 4 жыл бұрын
can you please help me ? ..... in code blocks pop_back function is not working .the values did not removed by using of pop_back function please help me
@zeni-ee4vl
@zeni-ee4vl 3 жыл бұрын
Sir despite all the numerous new youtube videos being uploaded these days for codiing etc, your videos from 5 years back are still the best
@codding32world50
@codding32world50 3 жыл бұрын
Agree
@ImranKhan-br5dv
@ImranKhan-br5dv Жыл бұрын
Right bro
@praphullkumar4594
@praphullkumar4594 3 жыл бұрын
I am seeing this video in 2021 during solving compititive programming , To solve problems clearly. I learnt mostly programming language from MySirg. Thank you sir.
@saurabhsaxena1992
@saurabhsaxena1992 3 жыл бұрын
Me too
@prajjwaltripathi2911
@prajjwaltripathi2911 2 жыл бұрын
@@saurabhsaxena1992 me too
@shraddhamehta7432
@shraddhamehta7432 4 жыл бұрын
sir you have detail knowledge and explanation skills are just amazing........you are saving us through your videos in year 2020
@ritikakapoor328
@ritikakapoor328 4 жыл бұрын
And your profile photo is amazing .Me too a Harry Potter fan
@Amit.01
@Amit.01 3 жыл бұрын
Also in 2021
@ebaadkhan9796
@ebaadkhan9796 Жыл бұрын
7 year old videos using old compilers and yet still outshines any of todays tutorials/explanations. Sirrr
@kamaldakshkrishnan9990
@kamaldakshkrishnan9990 Жыл бұрын
Old is Gold. Nothing compares to your channel.
@sakshisahu3983
@sakshisahu3983 4 жыл бұрын
Thank you so much sir for this explanation in such a simplified manner, we r really lucky to have your videos on KZbin....you made our lockdown valuable 😊
@amitkumar-gs2tr
@amitkumar-gs2tr 5 жыл бұрын
sir this is awesome video..i am very confused about vector but today my 95% doubt is solved...thanks sir
@vivekmesuriya6357
@vivekmesuriya6357 2 жыл бұрын
I am watching this video in 2૦22 and stil this is very usefull and give us lot of knowlege and also train about programming
@sumitsengupta4028
@sumitsengupta4028 4 жыл бұрын
Thank you sir, completed all the 74 lectures on c++ and Data Structure& Algorithm.
@Raju_Sharma852
@Raju_Sharma852 2 жыл бұрын
Hey, Sumit it's been two years now. Sumit Could you please share your experience how all this helped you to crack interviews ? And how to prepare for campus placements ?
@sumitsengupta4028
@sumitsengupta4028 2 жыл бұрын
@@Raju_Sharma852 i am from EEE , I just read it for fun...👍😇
@hitendrasingh01
@hitendrasingh01 2 жыл бұрын
I searched most of the platforms for stl but no one taught STL like our saurabh sir.
@sandipshaw8147
@sandipshaw8147 5 жыл бұрын
You are making india great again ......great job
@divyanshrawat2859
@divyanshrawat2859 2 жыл бұрын
amazing video ,every concept is clear now
@yunismher6677
@yunismher6677 2 жыл бұрын
Great explanation.. by legend teacher..
@prajjwaltripathi2911
@prajjwaltripathi2911 2 жыл бұрын
one of the best video on Vectors....and It will always be
@kartickchandramanna267
@kartickchandramanna267 2 жыл бұрын
Awesome Lecture 👍 Thank you sir 🙏
@srkgamejaipur
@srkgamejaipur 8 жыл бұрын
sir, you are great, awesome way of explain vector, hats off!!
@alokkumar8642
@alokkumar8642 7 жыл бұрын
Sir you have explained it really well .Very good and clear explanation.Thank you
@ayushisrivastava7535
@ayushisrivastava7535 2 жыл бұрын
Sir your way of teaching is really amazing thanks a lot ☺️
@Raju_Sharma852
@Raju_Sharma852 2 жыл бұрын
But don't you feel linked list is still better than vectors. Somehow Vector does waste memory (size-9 , cap-16). But linked list, Umm hh it creates only one block at a time which makes it memory friendly. But then why programmers adopt vectors. Still looking for a valid reason.🤔
@SavitaSharma-of5nq
@SavitaSharma-of5nq 4 жыл бұрын
Great man!!! He makes his words understand very good
@notmrabhi1
@notmrabhi1 2 жыл бұрын
Thanks sir for making us understand in such a detailed manner
@utkarshgautam1940
@utkarshgautam1940 3 жыл бұрын
this guy is awesome ,he is god ,best online teacher soo far.
@adityagangdhar1100
@adityagangdhar1100 4 жыл бұрын
This Sir is Legend and the explanation is very good.
@ArvindKumar-ov3ly
@ArvindKumar-ov3ly 3 жыл бұрын
Happy teacher's day Sir ,🙏🙏🙏
@conceptplanner8143
@conceptplanner8143 6 жыл бұрын
thanks a lot sir, your all video is very helpful for me.it gives better understanding of concept what is happening and why is happening in the program.sir i request you to please upload video on 2d vector and its application as a argument of function.
@jaidev2717
@jaidev2717 4 жыл бұрын
simply awesome! beautiful explanation
@saraswatirathore3933
@saraswatirathore3933 3 жыл бұрын
Very grateful sir ,to give such a amazing explanation it's really helpful for me
@ritammondal
@ritammondal 4 жыл бұрын
You have solved my problem of segmentation faults... Thanks sir... Thanks a lot
@ManishKumar-zk5ky
@ManishKumar-zk5ky 2 жыл бұрын
Great video sir 🤩😍
@mdjesan6435
@mdjesan6435 4 жыл бұрын
Teacher of the decade 🙂
@AnkitKumar-jf4vi
@AnkitKumar-jf4vi 5 жыл бұрын
Understood the concept very well . Thank u sir
@mihirvora391
@mihirvora391 4 жыл бұрын
Thank you very much❤. Very well explained all concepts.
@engineerskikaksha
@engineerskikaksha 4 жыл бұрын
Thank u sir ji You are my favorite teacher 🙏🙏
@tanmays5223
@tanmays5223 3 жыл бұрын
Really amazing way of teaching sir.
@abhishekpurohit8867
@abhishekpurohit8867 4 жыл бұрын
Thank you very much sir.... your videos are very helpful
@AJAYSHARMA-gb6qw
@AJAYSHARMA-gb6qw 5 жыл бұрын
Nice explanation again sirg truly exceptional
@mukulsaini2961
@mukulsaini2961 Жыл бұрын
35:31 ....if we want to print elements on 9 index after clear ,they still show 100 . For example: V1.clear (): cout
@rishabhupadhyay8165
@rishabhupadhyay8165 2 жыл бұрын
Thankyou so much sir 🙏🏻🙏🏻🌹
@RahulSharma-bj6lx
@RahulSharma-bj6lx 8 жыл бұрын
Sir, Seriously u r doing a great job...sir will u plz provide videos abt multi threading and design pattern for c++.
@mohdmuzzammil2619
@mohdmuzzammil2619 4 жыл бұрын
Sir, is this syntax also correct- vector v= {1,2,3}; I mean the use of assignment operator after object v.
@SLSM2208
@SLSM2208 4 жыл бұрын
Thanks a ton sir for this awesome lecture!! 😍
@sanskar_choudhary
@sanskar_choudhary 5 жыл бұрын
Thanks for that video, it was helpful
@programmingworld8946
@programmingworld8946 4 жыл бұрын
Sir you tell the real meaning of teaching😇
@shubz88chd
@shubz88chd 8 жыл бұрын
Sir, your videos are great !.Can you make video on commonly asked interview question in c++ ??
@SurjitSingh14-c6i
@SurjitSingh14-c6i 4 жыл бұрын
Check mysirg channel
@HarjotSingh-rj2lf
@HarjotSingh-rj2lf 3 жыл бұрын
@@SurjitSingh14-c6i Bro same name
@SurjitSingh14-c6i
@SurjitSingh14-c6i 3 жыл бұрын
@@HarjotSingh-rj2lf which college
@mahmudalamnau6615
@mahmudalamnau6615 3 жыл бұрын
kya mast samjhaate ho sir ...
@vinayaksharma-ys3ip
@vinayaksharma-ys3ip 3 жыл бұрын
Thank you so much Sir!!🙏👍💯😁🎊🎉✨
@aniketagrawal9449
@aniketagrawal9449 5 жыл бұрын
Hello Sir, Thanks for such informative lecture. I really like it. I have one doubt. What will be the length and capacity of a vector at the time of declaration if we have not done any initialisation? Example : vector v1; What will be length and capacity of v1 vector here?
@rajatnagpure7445
@rajatnagpure7445 5 жыл бұрын
0 capacity and 0 length
@PromLang
@PromLang 6 жыл бұрын
what is meant by this statement "int Solution::searchInsert(vector &A, int B)".
@SammarpanDasguptaOfficial
@SammarpanDasguptaOfficial 4 жыл бұрын
nice video sir....you are awesome.....
@sumanbhattacharjee7550
@sumanbhattacharjee7550 3 жыл бұрын
jabtak C/C++ will be used in competitive programming, this play list will be the best.....
@karunabiswas5876
@karunabiswas5876 5 жыл бұрын
sir, Really you are a great,Thank you very much sir
@krishanudutta2943
@krishanudutta2943 3 жыл бұрын
It was a great lecture thanks a lot sir
@priyanshugoel6980
@priyanshugoel6980 4 жыл бұрын
sir u r great, pls make a video series lectue on coding interviews stl library. i hope i surely get a rely from ur side
@HiteshKumar-db4wc
@HiteshKumar-db4wc 8 жыл бұрын
sir,please make video on set ,algorithms and iterators in STL
@ranjanrohit64
@ranjanrohit64 6 жыл бұрын
you are the best sir ji..
@pujasingh1413
@pujasingh1413 4 жыл бұрын
You are a blessing sir... thnq so much
@ballyminati6305
@ballyminati6305 4 жыл бұрын
sir why there is no error in your programme as you not entered return 0;
@bikramjitdas7000
@bikramjitdas7000 4 жыл бұрын
Sir suppose I initialised 5 elements and 5 elements space has been created, now as per the vector feature it would get double if I have filled all the 5 spaces, now when I insert the 6th element space then the capacity is 10 now. Suppose I don't need to insert any more element, then would there be any space wastage of 4 elements or is there any way out?
@nafisfuadshad7377
@nafisfuadshad7377 4 жыл бұрын
you are the best.
@thecompilerbro
@thecompilerbro 3 жыл бұрын
Thanks for the elaborate explanation.
@sourav2938
@sourav2938 8 жыл бұрын
Can we get your ppts as well? it gets very handy to use the syntax
@muhammadusman5553
@muhammadusman5553 5 жыл бұрын
your way of teaching is very professional ,, love from pakistan
@rishabhbansal6099
@rishabhbansal6099 6 жыл бұрын
sir you are best keep it up
@kumarshivam8077
@kumarshivam8077 6 жыл бұрын
Than you sir for teaching us such a great knowledge
@poojachitalkar9245
@poojachitalkar9245 5 жыл бұрын
Thanku dear sir gbu i love sir u r the great person in my life
@ayushbhardwaj6783
@ayushbhardwaj6783 6 жыл бұрын
You are Awesome sir ji ;)
@jaydeeppatidar4189
@jaydeeppatidar4189 4 жыл бұрын
sir can you plz upload videos on algorithms , iterators and some examples of STLclass plz sir ........
@SANDEEPKUMAR-zo5uc
@SANDEEPKUMAR-zo5uc 4 жыл бұрын
You are god -------Sir
@rajeshpes
@rajeshpes 8 жыл бұрын
Sir, once the capacity get increased then after removing one element it is not automatically resizing . why this is not happening and it will become useful.
@rajanmaheshwari
@rajanmaheshwari 7 жыл бұрын
I agree with Peterolen. If you want to do resizing always, you can opt for list rather than vector.
@shaswatpandey2991
@shaswatpandey2991 2 жыл бұрын
Guruji 🙏🙏, Aapne begining me bataya tha ki Vectors ki Default initial capacity 1(One) hoti hai, but kuch samay baad aapne bataya (during Push_back() definition )ki Default Initial value 0(zero) hoti hai? which one is true?
@parasjain9416
@parasjain9416 4 жыл бұрын
Dhanyawad Sir Ji
@kanchansarda4161
@kanchansarda4161 3 жыл бұрын
You are cool boss 😍
@imranwahid9871
@imranwahid9871 4 жыл бұрын
Thank you so much sir.😊😊😊😊
@motivationalshorts400
@motivationalshorts400 4 жыл бұрын
jab clear() ya push_back() call krke kisi element ko print krate h like cout
@mahaveerbana2031
@mahaveerbana2031 3 жыл бұрын
Genius 👍
@wasimzaman2453
@wasimzaman2453 4 жыл бұрын
After increasing the size of the vector (Dynamic array) can we decrease its size again ??
@saurabhsinghpatel3090
@saurabhsinghpatel3090 Жыл бұрын
No
@Muhammad_Abdullah_Sultan
@Muhammad_Abdullah_Sultan 6 жыл бұрын
Amazing lecture :)
@pujasingh1413
@pujasingh1413 4 жыл бұрын
May god bless you...
@bestsaurabh
@bestsaurabh 6 жыл бұрын
You mentioned that vector changes its capacity to double whenever it is full, but how that is optimum solution compared to linked list. Imagine we have 100 items is vector and it is full , even if we need to add just one element, vector size will be 200. Don't you think that is wastage of memory?
@safwanmansuri792
@safwanmansuri792 6 жыл бұрын
yes, but not like array it wastes more memory compared to vectors.
@Hetp111
@Hetp111 6 жыл бұрын
It is proved statistically that in the long run it is the best solution.
@govindkothari7989
@govindkothari7989 5 жыл бұрын
we can use (vector object name).shrink_to_fit() to avoid this.(it will make the capacity equivalent to the size of the vector.
@mihirmodi1936
@mihirmodi1936 4 жыл бұрын
At 44:21 why 0 is replaced by 35 ??
@priyanshjha6952
@priyanshjha6952 4 жыл бұрын
Sir, extraordinary
@sandeepkumawat4982
@sandeepkumawat4982 4 жыл бұрын
thanks for explaining in details
@PundirFamilyVlog
@PundirFamilyVlog 2 жыл бұрын
very good sir g 😈❤❤
@khusbookumarichoudhary7590
@khusbookumarichoudhary7590 4 жыл бұрын
hello sir,wanted to know that how to delete element from somewhere between begin and end of vector.
@sayantaniguha8519
@sayantaniguha8519 3 жыл бұрын
#include #include using namespace std; int main() { /* vector v1 {10,20,30}; //capacity is 3 vector v2(4); //creates 4 element wala char vector vector v3(3,'a'); //creates array of size 3 with all blocks containing 'a'. cout
@believeinpractical3930
@believeinpractical3930 3 жыл бұрын
Awesome sir
@AnandKumar-jc3nj
@AnandKumar-jc3nj 5 жыл бұрын
How do a vector resize itself to double of its current capacity if some another things occupied memory block just after vector
@prajitbanerjee8226
@prajitbanerjee8226 6 жыл бұрын
wow ..you are pro sir///
@kpclasses7985
@kpclasses7985 4 жыл бұрын
Thanks a lot sir !
@sandipsuryawanshi7759
@sandipsuryawanshi7759 3 жыл бұрын
Sir explain very good...thank u sir but video recording not clearly seen
@amarjitnayak7574
@amarjitnayak7574 5 жыл бұрын
I am following your video since last 5 years..u r just helping all..ur the best best and best...one query here.. whether memory is occupied, when we pop all data..coz capacity is still 16 ? Also, if yes.. how to release all memory ? And make the capacity 0 again ..
@Ayush-nn3em
@Ayush-nn3em 4 жыл бұрын
I have the same question but i think it can be solved by using clear() function and then using shrink_to_fit() function
@rajatchauhan5501
@rajatchauhan5501 7 жыл бұрын
int main() { vector v; v.push_back(10); v.push_back(10); v.push_back(10); vector:: iterator i=v.begin(); v.insert(i+3,10); return 0; } Runtime Errors: Segmentation Fault (SIGSEGV) can you help me with this please??
@pushpendra_kushvaha
@pushpendra_kushvaha 4 жыл бұрын
working fine no error. Use codeblock if any error
@shefalikumari7492
@shefalikumari7492 4 жыл бұрын
Sir , where is the lectures for ITERATORS and ALGORITHMS CLASS?
@shreyasrivastava7712
@shreyasrivastava7712 5 жыл бұрын
Thank u sir
@sejalpawar7076
@sejalpawar7076 4 жыл бұрын
Sir,can u plz explain concepts of vector of array,array of vector and vector of vector ?????
@AjayKumar-ju6sl
@AjayKumar-ju6sl 4 жыл бұрын
Sir jiske liye maine ye video dekhi wo doubt to clear hi nhi hua Kya vector ka use karke user se value nhi le sakte hai kya
@gopesh97
@gopesh97 6 жыл бұрын
sir please make a video on iterators, eagerly waiting.
@priyanshbansal7244
@priyanshbansal7244 4 жыл бұрын
sir have you uploaded videos on iterators in stl
@rovinsingh681
@rovinsingh681 8 жыл бұрын
thanks sir very well explaination
@ElevateYourLife0717
@ElevateYourLife0717 6 жыл бұрын
Thank you so much sir.
Lecture 38 List class in STL in C++ Hindi
19:34
C++ by Saurabh Shukla Sir
Рет қаралды 105 М.
Lecture 40 string class in C++ Part 1 Hindi
27:34
C++ by Saurabh Shukla Sir
Рет қаралды 148 М.
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54
번쩍번쩍 거리는 입
0:32
승비니 Seungbini
Рет қаралды 182 МЛН
Vectors in C++ STL |Part 1 | STL for Beginners| C++ Tutorials for Beginners #lec50
30:37
Lecture 32 Introduction to STL in C++ Hindi
19:37
C++ by Saurabh Shukla Sir
Рет қаралды 213 М.
Lecture 35 pair in STL in C++ Hindi
17:51
C++ by Saurabh Shukla Sir
Рет қаралды 102 М.
Lecture 33 STL Containers in C++ Hindi
14:53
C++ by Saurabh Shukla Sir
Рет қаралды 127 М.
tellg and tellp in C++ language Hindi
16:11
C++ by Saurabh Shukla Sir
Рет қаралды 94 М.
Vector In C++ STL | C++ Tutorials for Beginners #71
25:05
CodeWithHarry
Рет қаралды 488 М.
Producer And Consumer Problem
15:42
CppNuts
Рет қаралды 38 М.
Lecture 26 Type Conversion one class type to another class type in C++ Hindi
19:23
C++ by Saurabh Shukla Sir
Рет қаралды 124 М.
Lecture 27: What is STL || Vector in C++
1:24:13
Coder Army
Рет қаралды 59 М.
CLASSES in C++
8:42
The Cherno
Рет қаралды 686 М.