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.
- Hash Tables: Ransom Note
- Discussions
Hash Tables: Ransom Note
Hash Tables: Ransom Note
Sort by
recency
|
1925 Discussions
|
Please Login in order to post a comment
JAVASCRIPT
Swift Solution:
check the frequency same word occurence , you can follow below code snippets
String flag="Yes";
for(int i=0; i if(magazine.contains(note.get(i))){
magazine.remove(note.get(i));
}else flag="No"; }