Monthly Archives: March 2010

Chess Titans can’t detect deadlocks like this

The game continues forever…   Advertisements

Posted in Games | Leave a comment

Stages of my winning moves

Black Queen Trapped   Pawn Advantage   Checkmate

Posted in Games | Leave a comment

Rook Advantage

Posted in Games | Leave a comment

Check string rotations

A program to check if strings are rotations of each other or not. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO;   namespace ConsoleApplication2 {     class Program     {         static void Main(string[] args)         {             … Continue reading

Posted in Information Technology | Leave a comment

Sum is same for first and last three digits

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO;   namespace ConsoleApplication2 {     class Program     {         static void Main(string[] args)         {             StreamWriter sw = new StreamWriter(@"D:\Numbers.txt", false);             //Find all numbers in the range … Continue reading

Posted in Information Technology | Leave a comment

Maximum sum such that no two elements are adjacent

Given an array, find the maximum sum of a subsequence with the constraint that no two numbers in the sequence should be adjacent in the array. So 3 2 7 10 should return 13 (sum of 3 and 10) or … Continue reading

Posted in Information Technology | Leave a comment

Useless Black Pawn

Black couldn’t utilize the additional pawn it had against white. The game ended in a draw.

Posted in Games | Leave a comment