Category: code sprint 3

Black White Tree

               Black White Tree Click here to Solve the problem!! Daisy has a tree with  node and  edges. Each node of the tree is colored either black or white. She defines the strangeness of a tree as the absolute difference between the number of black nodes and white nodes. The tree in the

Bob’s Game

                    Bob's Game   Challange link:     Bob recently invented a new game. The game is played on an chessboard. The rules of the game are: Initially, there are kings in some of the cells. A cell can contain more

March of the King

             March of the King                                                             Click Here to solve the problem The white king George lives all alone in a chessboard (A standard

The Snake vs the Wind

          The Snake vs the Wind A group of scientists is doing some experiments with a snake. They want to measure its intelligence by observing the way it moves inside a specific area. The scientists have inserted the snake inside a two-dimensional square. They have filled the area with  mice (one in each

A Small Step Toward Calculators

  A Small Step Toward Calculators Alice has a string of the form x+y or x-y. Here,  and  are single-digit nonnegative integers. Her task is to perform the addition or subtraction accordingly and print the result. As a newbie programmer, Alice is struggling to finish the task. Can you help her? Input Format In a single line, you will be

Erupting Volcanoes

              Erupting Volcanoes According to recent research, most active volcanoes are located near the islands of the Pacific Ocean. Scientists know the effects of the volcanic lava and they want to measure the maximum effect of lava on a specific area. It is difficult for them to analyze the