Category: c / c++
Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are …
Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase. Allocate a string and assign input string to it. Change uppercase letters to …
Given an array of integers, 1 ≤ a ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements that appear …
Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string. Return a list of all possible strings we could create. …
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 …