Tag: hash set
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it …
Design a logger system that receive stream of messages along with its timestamps, each message should be printed if and only if it is not printed in the last …
In a array A of size 2N, there are N+1 unique elements, and exactly one of these elements is repeated N times. Return the element repeated N times. Example …
Given a binary search tree and a target, find out if there are any two numbers in the BST that sums up to this target. Given a Binary Search …
Same Email addresses can have different forms for example, in the format of “username@domain” – the username part can have the optional dots to separate. The following email addresses …