Source Code:[ Ссылка ]
Solution:
- We take a Set variable, where we'll characters of string
- Now we iterate the string & keep on putting all the charcaters one by one
- Set always store the unique characters
- At last Set size will the number of unique characters
Time Complexity: O(n)
Space Complexity: O(n)
Do Watch video for more info
CHECK OUT CODING SIMPLIFIED
[ Ссылка ]
★☆★ VIEW THE BLOG POST: ★☆★
[ Ссылка ]
I started my YouTube channel, Coding Simplified, during Dec of 2015.
Since then, I've published over 400+ videos.
★☆★ SUBSCRIBE TO ME ON YOUTUBE: ★☆★
[ Ссылка ]
★☆★ Send us mail at: ★☆★
Email: thecodingsimplified@gmail.com
Ещё видео!