Category: coding exercise
Given a reference of a node in a connected undirected graph, return a deep copy (clone) of the graph. Each node in the graph contains a val (int) and …
In a given integer array nums, there is always exactly one largest element. Find whether the largest element in the array is at least twice as much as every …
Implement a function countNumbers that accepts a sorted vector of unique numbers (integers), and efficiently with respect to time used, counts the number of vector elements that are less …
In Javascript, given object var x = {a: {b: {c: “value”} } }, we can retrieve/access the field by x.a.b.c However, if a field doesn’t exist, exception will be …
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 …