Tag: c++
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 …
Given an array that has n integers, find a sub array of given length k that has the maximum average value. Write a function that outputs the maximum average …
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 …
I am doing a C++ coding exercise, as usual…. And to split a string in C++, the best/easy way is to use the boost library… However, this is not …
Given a n-ary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf …