Strings - Part 4 | Reverse Words in String | DSA Placement Series

preview_player
Показать описание
Lecture 31 of DSA Placement Series
Want to study for Tech Placements/Internships from us :

Shradha Ma'am community
Рекомендации по теме
Комментарии
Автор

Watched "Strings - Part 4 | Reverse Words in String | DSA Series" on 28/10/2024.
✅ Completely understood the concepts explained.
📝 Made thorough notes while watching.

Thank You So Much for This Amazing Lecture 😊

PrithaMajumder
Автор

Thanks for the effort and free but premium content 🙏🙏

sohanmandal
Автор

I am big fan of you, I am in 12th class now, I will definitely learn coding from you

MdZulfaqar-ni
Автор

we are bless to have you as our Teacher <3 :* :)
Thank you so much for your efforts

soniarezai
Автор

Completed and Thank you for the this amazing learning experience ❣

ytSomdattGupta
Автор

Mam you are the best teacher of coding in the world mam thank you so much you teaching way is very inspiring for me thank you mam (from Pakistan).

AQSANiZAMANi
Автор

Thanks Shradha Didi. Though I may be 10 years older than you but since you are my C++ guru, I will affectionately call you Didi.

totekhan
Автор

Mam please java me bhi ese playlist bna dijiye.
Bcoz apki pehle wali java dsa series me dp ke question ni hai and ye cpp me bhut sare ache ache question hai

MovieOk-pq
Автор

Successfully completed ✅ day 31 lecture thank you shradha maam for your valuable lectures to us😊😊😊

26/10/2024

2:18:08 PM

vishnuvardhan
Автор

Thanks a lot, ma'am. The best Dsa Series so far 💯

zubairr
Автор

Thank u, thank u so for regular lec videos, it's help alot

Dreamy_diarie
Автор

Thankyou Shradha ma'am for DSA information

Shazia-nqfv
Автор

Completed on November 4 2024, 19:37pm.

nabin-xf
Автор

Please make video on linked list and give its concept from basic .the previous video on this channel is high level.tough for us to understand.could not understand topic from that video

alisher-
Автор

i have little modified the code and its working

class Solution {
public:
string reverseWords(string s) {
int n = s.length();
string ans="";
reverse(s.begin(), s.end());
string word="";
for(int i=0;i <n; i++)
{
if (s[i] != ' ') {
word = s[i] + word;
} else if (word.length() > 0) {
if (ans.length() > 0) ans+=" ";
ans += word;
word = "";
}
}

// Add the last word if there's any left after the loop
if (word.length() > 0) {
if (ans.length() > 0) ans += " ";
ans += word;
}

return ans;
}

};

TheEngineerGuy-TEG
Автор

Very good channel for beginners to learn programming ❤

Wisdom_walks
Автор

Mama's Please make video difference between MCA or Msc IT course

PRAKASHSINGH-gcvz
Автор

Hey didi ! I watch your vedio and it's very helpful 😊

PayalAgnihotri-gvpw
Автор

So plz make an easy level video on linked list

alisher-
Автор

we can simply use stringstream as well to solve this.

trxsidd