Tag: unordered_set
You are given a string s of even length. Split this string into two halves of equal lengths, and let a be the first half and b be the …
Given a string s, determine whether it has all unique characters. Example 1 Input s = “abcde” Output true Explanation All characters only occur once Example 2 Input s …
Given two positive integers x and y, an integer is powerful if it is equal to x^i + y^j for some integers i >= 0 and j >= 0. …
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 …
Two strings are isomorphic if the characters in one string can be replaced to get another one. No two characters may map to the same character. A character can …