Sort Colors | LeetCode 75 | C++, Java, Python

Sort Colors | LeetCode 75 | C++, Java, Python

Knowledge Center

4 года назад

5,649 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Shubham Srivastav
Shubham Srivastav - 07.04.2022 21:43

Nice solution...

Ответить
Kishan Delvadiya
Kishan Delvadiya - 20.09.2021 21:59

You cleared my doubt.:)

Ответить
Siva subramani
Siva subramani - 11.04.2021 07:58

Very well explained. Have you pen tablet to create this video?

Ответить
Utkarsh Singh
Utkarsh Singh - 12.06.2020 14:12

This was asked in my Microsoft's group-fly round. Great explanation.

Ответить
Srikant Sharma
Srikant Sharma - 11.06.2020 21:27

Very well explained!

Ответить
Akash
Akash - 11.06.2020 15:03

Nice Bro keep Rocking

Ответить
Shadow25
Shadow25 - 11.06.2020 13:43

So, it's relatively a simple question, we enter a string and a position and we count the number of times the character has occurred before that position

Input
abcadsanasd
9

output
3

explaination- the 9th position(8th in 0 index) is a so for 0-7 a occurs three times

My problem, no matter what i try i always get time exceeded error upon submission.

Ответить