Cerinta completa You are playing a game of Nim with a friend. The rules are are follows: 1) Initially, there are N piles of stones. Two players play alternately. 2) In each turn, a player can choose one non empty
Two Strings
Cerinta completa Given two strings, determine if they share a common substring. A substring may be as small as one character. Example These share the common substring . These do not share a substring. Function Description Complete the function twoStrings
Tripartite Matching
Cerinta completa You are given unweighted, undirected graphs, , , and , with vertices each, where the graph has edges and the vertices in each graph are numbered from through . Find the number of ordered triples , where ,
Travelling Salesman in a Grid
Cerinta completa The travelling salesman has a map containing m*n squares. He starts from the top left corner and visits every cell exactly once and returns to his initial position (top left). The time taken for the salesman to move
Balanced Brackets
Cerinta completa A bracket is considered to be any one of the following characters: (, ), {, }, [, or ]. Two brackets are considered to be a matched pair if the an opening bracket (i.e., (, [, or {)
Two Two
Cerinta completa Prof. Twotwo as the name suggests is very fond powers of 2. Moreover he also has special affinity to number 800. He is known for carrying quirky experiments on powers of 2. One day he played a game
Cube Summation
Cerinta completa Chinese Version Russian Version Define a 3-D Matrix in which each block contains 0 initially. The first block is defined by the coordinates (1,1,1) and the last block is defined by the coordinates (n,n,n). There are two types
Two Robots
Cerinta completa You have a warehouse with containers filled with an infinite number of candies. The containers are arranged in a single row, equally spaced to be meter apart. You also have robots that can pick up piece of candy
Almost sorted interval
Cerinta completa Shik loves sorted intervals. But currently he does not have enough time to sort all the numbers. So he decided to use Almost sorted intervals. An Almost sorted interval is a consecutive subsequence in a sequence which satisfies
Contacts
Cerinta completa We’re going to make our own Contacts application! The application must perform two types of operations: add name, where is a string denoting a contact name. This must store as a new contact in the application. find partial,
