We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Strings
- Gemstones
- Discussions
Gemstones
Gemstones
Sort by
recency
|
1025 Discussions
|
Please Login in order to post a comment
Here are my c++ approaches of solving this problem, video explanation here : https://youtu.be/EjhdJXN3a3c
Solution 1 : Using a list of all possible characters
Solution 2 : Using set of the shortest element of the array of string
JS:
}
for Python3 Platform
the best logic is to use intersection between two sets