#arrays
Read more stories on Hashnode
Articles with this tag
HashMap, Arrays · Overview I walk you through how to solve Leetcode problem 347. Top K Frequent Elements. Approach 1: Count HashMap def...
Python, Filter, Anonymous Function · Approach 1: Helper Function # Helper Function that returns the name if its length is 4 def keepName(name): if...
Strings · Solution function likes(names) { if (names.length >= 4){ return `${names[0]}, ${names[1]} and ${names.length - 2} others like this`; } ...
Arrays / Hashing · Overview I walk you through how to solve Leetcode problem 242. Valid Anagram. There are various approaches to solving it. This allows...
Arrays / Hashing · Overview I walk you through how to solve Leetcode problem 217. Contains Duplicate. Although it's an easy problem, there are various...