1455. Check If a Word Occurs As a Prefix of Any Word in a Sentence | 2 Pointer | 1 pass

  Рет қаралды 901

Aryan Mittal

Aryan Mittal

Күн бұрын

Пікірлер: 4
@rnt_yash
@rnt_yash 17 күн бұрын
it's mentioned in the question that it contains only single spaced words in the sentence :)
@ARYANMITTAL
@ARYANMITTAL 17 күн бұрын
Lol, my bad, thanks man🙇‍♂️
@Engineering.Wallah
@Engineering.Wallah 17 күн бұрын
int i=1,n=searchWord.size(); stringstream s(sentence); string word; while(s>>word){ if(word.substr(0,n)==searchWord) return i; i++; } return -1;
@ARYANMITTAL
@ARYANMITTAL 17 күн бұрын
Awesome 🙌🏻 🫡
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
31 nooby C++ habits you need to ditch
16:18
mCoding
Рет қаралды 839 М.
you will never ask about pointers again after watching this video
8:03
769. Max Chunks To Make Sorted | Prefix Sums | Multiple Approaches
14:09
How to Solve ANY LeetCode Problem (Step-by-Step)
12:37
Codebagel
Рет қаралды 320 М.
Understanding Ownership in Rust
25:30
Let's Get Rusty
Рет қаралды 271 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН