Implement String Class | MUST do Question for C++ round at Microsoft, Adobe, Intuit, Oracle!!

preview_player
Показать описание
So many people code in C++ and make it their primary language but most of the people don’t know concepts required for C++ interview rounds! Companies like Microsoft, Adobe , Intuit , Oracle , Tower Research Capital and many others have these specific interview rounds.

Since my Mock DSA and Mock system design interviews are helping many, finally starting 𝐌𝐨𝐜𝐤 𝐂++ 𝐈𝐧𝐭𝐞𝐫𝐯𝐢𝐞𝐰𝐬.

The first video that I did covers SO MANY concepts (probably it can get you clear your C++ interview).

I have interviewed Amit here who has 9+ Years of Experience in C++, has taken and given many C++ interviews and cracked companies like Adobe and Oracle because of the same!

I know he has a LOT of knowledge in this because he is the one who guided and helped me for my C++ rounds at Intuit. I honestly had no idea about so many prerequisites before that. Then I noticed similar concepts being required by a lot of companies. I am hoping these mock interviews will lead you in right direction.

Trust me, if you are going for C++ interview, this video will definitely help you.

Thank you Amit for all the help and being a sport to give interview for the channel!

𝐂𝐑𝐈𝐎 𝐋𝐀𝐔𝐍𝐂𝐇 𝐂𝐎𝐃𝐈𝐍𝐆 𝐀𝐒𝐒𝐄𝐒𝐌𝐄𝐍𝐓 𝐓𝐄𝐒𝐓 𝐋𝐈𝐍𝐊-

You can get 𝐃𝐈𝐒𝐂𝐎𝐔𝐍𝐓𝐒 using code "KEERTI" -

You can also connect with me on-

𝐂𝐡𝐞𝐜𝐤 𝐨𝐮𝐭 𝐭𝐡𝐞𝐬𝐞 𝐩𝐥𝐚𝐲𝐥𝐢𝐬𝐭𝐬-
𝐃𝐞𝐬𝐢𝐠𝐧 𝐏𝐚𝐭𝐭𝐞𝐫𝐧𝐬 -
𝐇𝐨𝐧𝐞𝐬𝐭 𝐂𝐨𝐧𝐯𝐞𝐫𝐬𝐚𝐭𝐢𝐨𝐧𝐬 -

The video contains following parts-
0:00-0:35 - Intro
0:35-1:23 - Crio Launch Promotion
1:23-7:43 - Question & Use Cases
7:43-9:40 - Basic class, Default Constructor
9:40-12:50 - Initializer List
12:50-15:15 - Parametized Constructor
15:15-18:55 - Copy Constructor
18:55-25:30 - Copy Assignment operator
25:30-32:15 - Output & Input, Operator overloading
32:15-39:40 - Copy and Swap Idiom (CAS)
39:40-45:05 - Move constructor
45:05-46:15 - Destructor

#C++ #mockinterview #coding
Рекомендации по теме
Комментарии
Автор

C++ teacher to Life partner long journey ❤️❤️❤️

movvamanish
Автор

Legends are here after kirti proposed him

kshitizjaiswal
Автор

One thing that we should always remember for production quality code, is to check any pointer for null before using strcpy etc as it will crash the program, this code will not pass a code review. Kudos for bringing in so much valuable content though.

abhiunme
Автор

Very comprehensive 👍
Couple of points I would like to bring to your notice.
1) Calling overload << and >> operator for strings constructed using default constructor is problematic here as resource pointer is initialized with nullptr.
2) Move constructor will not have const rvalue reference as we are resetting the values here.

anand
Автор

Thank you so much for made this video. I got the same question while giving interview very recently.
But, I seen this video very long time back. Luckily, I'm able to come up with proper approach because of you guys made the concept crystal clear and your C++ series and design pattern videos helped me a lot. Fortunately, I got an offer from that company as well. Thanks again for your contribution to the community!!!

Manojkumar-rqhf
Автор

Really appreciate your effort in putting up this mock interview which covers plethora of c++ topics in 45 minutes.
👍👏

shashankcool
Автор

Hi Keerti,
First of all good video. Secondly, some noticeable points:
1) The defined >> overloading will not work properly.
2) The Move Assignment should have been implemented as it would would have cleared few points like while making statements : Ex- S2 = std::move(S1) ; Copy assignment and Move Assignment both would have been a viable option. Hence compiler will report an ambiguity.
3) As others have already mentioned, use of const in Move Constructor. But happens :)
4) A great question could also have been an explanation on how compiler knows how many bytes to delete when calling delete[] .

But above all, Great Work and Really Helpful for all. Thanks to Amit too.

philosophers_wool
Автор

Excellent video for C++ developers. Thanks to both. Back in the 20's, this question was one of the most frequently asked questions in an interview. I faced it between 2012 and 2015

Itsmenly
Автор

Mock C++ interview se proposal video tk ka safar💯💯

tusharamrit
Автор

Yes please, more of these c++ mock interviews would be really helpful. Thank you!

jakesmith
Автор

Now i Understood why Amit Kumar is chosen for this interview 😅, Happy Marriage ❤️🔥

agrawalhimanshu
Автор

Why is this series ended with only 2 episodes. I would like to see more of the #C++ episodes and C++ mock interviews as well. Thanks for the content Keerthi.

shameelgoldentrio
Автор

Nice video . If you refer this vide your half of interview is already clear !!
One small correction

in Constructor and in assignment operator
this->res[len] = '\0';
//null termination character
This must needed I think

saurabhkulkarni
Автор

Super.. everybody must watch this video carefully don't skip any single word...good job

ajaylearningcentre
Автор

Any one here after the proposal video?

mainakghosh
Автор

clearly the best single video covering so many points... thanks a lot

shristiprakash
Автор

Thanks Keerti and Amit with such an amazing video, the very same yet with a twist i was asked to implement grep function which we used to have in unix or linux that too with use of multi-threading at Nokia for Sr. Software Er. position.

ashishnamdeo
Автор

Two small remarks to this great video:
1. In 25:10 the length() member function really should be const, otherwise you will restrict it to only non-const objects. I personally would consider it a mistake and would try to steer the person into thinking about it and correcting it by himself. That would show whether this was just an oversight, or if he is not aware of this at all.
2. Making a class like this and leaving destructor to the very end is also not very good. You really should write one immediately when you write the first constructor that calls new. This is just a tip what to avoid not only in interviews, but also in everyday programming :)

tomaskot
Автор

I think I recognize him from your recent video now 🤔

daisymodi
Автор

This video was really insightful about C++ concepts. Please create more videos like this to cover all aspects of C++

JavedKazmi-ex