Showing posts with label Topcoder. Show all posts
Showing posts with label Topcoder. Show all posts

Friday, 25 October 2013

Topcoder SRM 595 DIV2 250

Problem Statement


In short, You are given a string containing only characters R,G,B. We can remove the string from either end at each move( from left or from right). Finally, the string must contain only R or G or B.

You can find a detailed problem description here.

Wednesday, 16 October 2013

Topcoder SRM 594 DIV2 250

Problem Statement


In a nutshell, Given a M x N Matrix we have to check whether it is possible to visit all the cells starting from any location.


Moving Direction - If you are in the cell (x,y), you can only move to ( (x+1)%M, (y+1)%N )

You can find a detailed problem description here.