Ransom Note - Leetcode 383 - Hashmaps & Sets (Python)

preview_player
Показать описание


Please check my playlists for free DSA problem solutions:

My Favorite Courses:

Data Structures & Algorithms:

Python:

Web Dev / Full Stack:

Cloud Development:

Game Development:

SQL & Data Science:

Machine Learning & AI:
Рекомендации по теме
Комментарии
Автор

Master Data Structures & Algorithms For FREE at AlgoMap.io!

GregHogg
Автор

in my opinion, your roadmap website and the videos you put out are so under rated, your content is A level, and so far the best tutor of DSA in python in the entire community i have encountered, you are doing great work Greg 👍👍👍

anshpradhan
Автор

Great explanation! Very well explained. Loved how you explained even the different approach, and sticked with the one that's best for the interviews. Thank you

zvmrbod
Автор

Is it better to have a dictionary of the characters in magazine and loop over ransomNote or vice versa or is it basically the same?

spider-capgaming
Автор

why can you store the chars of magazine in a list and loop over the chars of RansomNote and check if they in list if yes remove it from the list and if not return false as the ransomNote cant be made?

gaganlonde
Автор

Wouldn't space complexity be O(m) as you said in the video? Because it would be the number of key-value pairs from the counter that can hold at most O(m) unique characters from the magazine. I do not get why it would be O(1) space complexity.

aki_blasco
Автор

Couldn't it be solved using substring method ??

lakshyamathur
visit shbcf.ru