LeetCode Tutorial 387. First Unique Character in a String

preview_player
Показать описание
GoodTecher LeetCode Tutorial 387. First Unique Character in a String

LeetCode Tutorial by GoodTecher. The tutorial provides a step-by-step demonstration on how to solve coding problems.

Complete Playlist for the GoodTecher LeetCode Tutorial:

GoodTecher Website:

GoodTecher Channel on YouTube:

GoodTecher Github:

GoodTecher Facebook

GoodTecher Twitter
Рекомендации по теме
Комментарии
Автор

Thanks for the video it was very useful!

XxMegaHeroxX
Автор

You are the best teacher I have ever found... I request you to come up with more videos that would help thousands of people..God bless you, brother!

rakshith
Автор

We can try like
for( int i=0;i<s.length();i++){
If(s.indexOf(s.charAt(i)) == s.LastIndexOf(s.charAt(i))){
return i:
}
}
return -1

PShyamSundar
Автор

Keep doing it bro.. We all appreciate it.

shabbirsaifee
Автор

Could you also explain with regards to time complexity? and which will be an efficient way to do it? what if the string has more than 100?

sdkdeepa
Автор

Hi GoodTecher,
Thank you for your clear explanation in your LeetCode tutorials.
Keep up the good work.
I would be most grateful if you could explain LeetCode 451. Sort Characters By Frequency.
Regards
Ade

aades
Автор

why are we subtracting 'a'? what does it mean?

rakeshramesh