Lecture22: All about Char Arrays, Strings & solving LeetCode Questions

preview_player
Показать описание
In this Video, we are going to learn about char arrays, strings and solve the following questions:
- Length of String
- Reverse a String
- Check Palindrome
- Valid Palindrome
- Reverse words
- Maximum occurring character
- Remove all occurrences of substring
- Remove all adjacent duplicates
- String Compression

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 ? “

Homework: timestamps added below

Question Links:
- Length of String

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

Telegram Group Link: Love Babbar CODE HELP

Connect with me here:

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

Timestamps:

00:00 - Introduction to Char Arrays and Strings
02:57 - Promotion
03:50 - Introduction to Char Arrays and Strings
06:09 - How char arrays are stored ?
07:19 - Null Character
08:09 - Input Char arrays
08:51 - Output char arrays
10:24 - Coding
11:34 - Multiple words and cin limitation
15:34 - Length of String (Question 1)
18:34 - Reverse a String (Question 2)
23:27 - Check Palindrome (Question 3)
30:04 - Coding
42:39 - Homework
42:46 - Valid Plaindrome (Question 4)
43:28 - String ?
46:20 - Homework ?
47:28 - Approach of Question 48:45 - Code
55:06 - Reverse words (Question 5)
57:15 - Homework
57:42 - Maximum occuring character (Question 6)
58:37 - Code
01:12:02 - Homework
01:12:19 - Inbuilt functions
01:14:17 - Replace Spaces
01:15:14 - Code
01:17:12 - Homework
01:18:09 - Remove all occurrences of substring (Question 7)
01:20:17 - Code
01:23:30 - Permutation in String
01:27:31 - Code
01:39:08 - Remove all adjacent duplicates (Question 8 )
01:40:38 - Homework
01:41:42 - String Compression (Question 9)
01:44:36 - Code

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

Very few YouTubers can maintain such consistency with such quality content 🔥

sahilanand
Автор

In this 2 hours of lecture i learnt about 10 hours of content by going through other optimized solution in discussion section, refering different stl libraries for new function, learning from errors...

mlkgpta
Автор

The best thing about this course is, it covers wide range of topics which is helpful for beginners as well as advance programmers!

sahilanand
Автор

This is my favourite channel. I especially like it when you explain everything so nicely. I wish you a lot of success with the channel and happy life.

SandipDas-bdpt
Автор

took me like 2 days to complete this video. really enjoyed it. thanks bro

ayushkushwaha
Автор

*Key Differences Between Character Array and String*
A character array is a collection of variables which are of character datatype. String is a class that is instantiated to declare strings.
Using index value you can access a character from a character array. On the other hand, if you want to access a particular character in a string, you can access it by function string’s_name.charAt(index).
As an array is not a datatype similarly a character also is not a datatype. On the other hand, String being a class act as a reference type hence, it can be said String is a data type.
You can not apply any operator on a character array whereas, you can apply operators on String.
Being an array character array has a fixed length and its boundaries can be easily overrun. Where String does not have any boundaries.
Array elements are stored in a contiguous memory location hence that can be accessed faster than string variable.

dEviL_bIsWaJiT
Автор

Seeing you consistent My brains demands consistent from ...Ajj ka attendance laag gya😃
Thanks Bhaiyaa ☺️

muatasimahmed
Автор

Finally Completed this Video after 5 days. Have to say this was the Toughest to Digest and Code and Understand so far in the journey But Worth every Second. Now I am much confident with String. Thanks Bhaiyya !!
Onto the next video.

mdwaqar
Автор

Hi Mr. Love Babbar. Your content is just amazing. Thank you so much from Bangladesh.

subrinasirajee
Автор

I don't care about length I care only about content which is fantastic 👌

JGyanRaj
Автор

Bhaiya ye video maine 3 din me complete ki hai...
Lekin ek ek explaination ko 2- 3 baar dekha, implement kiya.. aur cheezein samajh aane lagi. Thank you bhaiya.

anishtripathi
Автор

for converting upper case to lower case simply add ( ch+32 ) and for converting lower case to upper case simply subtract ( ch-32 ).

sambhavsharma
Автор

This is a really good course and more better than many premium courses of DS & Algo. Thank you is not enough for this course.

sayanmukherjee
Автор

great video
whenever you show a new problem, I spend at least 30 min or more trying to solve it. Then if I can't or after solving, I see the solution you provide. Never thought problem solving would be this addictive

inter
Автор

very few youtubers can maintain such consistency with such quality content good job brother

themindtreatment
Автор

Video length dekhr achaa lga bs aisi hi video chaiye😊😊😊😊😊

harshk
Автор

Present bhaiyya, I am on 1:00:45 To be honest, by far the best video ever watched on these topics❤️❤️ absolutely loving the way u mould us to solve any problem. You are a gem 💎

Aatifkhan-pqkv
Автор

Sir Your teach us Like a Brother, Quality content and I follow all your words.

rehanhussan
Автор

I love this series, Thanks for providing this content. One feedback, plz explain the code by more dry run(specially permutation question), also 30-40 min video length will be good.

kailashdaata
Автор

FOR MY REFERENCE:-
A character array is a collection of variables which are of character datatype. String is a class that is instantiated to declare strings.
Using index value you can access a character from a character array. On the other hand, if you want to access a particular character in a string, you can access it by function string’s_name.charAt(index).
As an array is not a datatype similarly a character also is not a datatype. On the other hand, String being a class act as a reference type hence, it can be said String is a data type.
You can not apply any operator on a character array whereas, you can apply operators on String.
Being an array character array has a fixed length and its boundaries can be easily overrun. Where String does not have any boundaries.
Array elements are stored in a contiguous memory location hence that can be accessed faster than string variable.

Anonymous-ngdw