
cyclicString
We call a string cyclic if it can be obtained by concatenating another string to…
sumSubsets
Given an array of integers arr and an integer num, find all possible unique subsets…
countSumOfTwoRepresentations
Given integers n, l and r, find the number of ways to represent n as a sum of two integers A and B such that l…
chartFix
As an economist, you are interested in Pingland PING to Pongland PONG currency chart. In…
regularBracketSequence
Một tổ hợp các dấu ngoặc được gọi là chuẩn tắc nếu ta có thể thêm các…
makeTriangle
Mr Viet has three sticks of length a, b, c centimeters respectively. In one minute he can…
buildPalindrome
A palindrome is a string that reads the same left-to-right and right-to-left. Given a string, find the…
directionOfReading
You have an array of non-negative integers numbers, each less than 10numbers.length. Add leading zeros if necessary…
CountSpanningTree
Given an un-directed, complete graph with n vertexes. Count the number of spanning tree in…