Monthly Archives: September 2009

Kolkata’s Best Durga Pujas

Durga Puja is organized in large numbers in all corners of Kolkata and in fact it is quite difficult to cover all on a single day. Durga Puja in Kolkata can broadly be divided into four parts: East, West, North … Continue reading

Posted in Festival | Leave a comment

Molecules Problem

In this abstraction from a molecular engineering problem associated with developing a synthetic fuel, we are given four, equal-length, molecular chains that are to form a super molecule. In the simplified two-dimensional model used here, the super molecule is formed … Continue reading

Posted in Information Technology | Leave a comment

Printing a 2D matrix in spiral order

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO;   namespace ConsoleApplication2 {     class Program     {         static void Main(string[] args)         {             int[,] matrix = {                                 { 1, 2, 3, 4 },                                 { … Continue reading

Posted in Information Technology | Leave a comment

Optimizing length of network cable

using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Collections;   namespace ConsoleApplication1 {     class Program     {         static void Main(string[] args)         {             Console.Write("Enter number of computers to connect: ");             int num = int.Parse(Console.ReadLine());             … Continue reading

Posted in Information Technology | Leave a comment

Replacing consecutive duplicate characters with repetition count

using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Collections;   namespace ConsoleApplication1 {     class Program     {         static void Main(string[] args)         {             //Replacing consecutive duplicate characters with repetition count             string str = "aaaaaabbbbbbbbbbeeeddeeffg";             … Continue reading

Posted in Information Technology | Leave a comment

Triangular Vertices

                 1                 / \                2 – 3               / \ / \              4 – 5 – 6                        / \ / \ / \            7 – 8 – 9 – 10           / \ / \ … Continue reading

Posted in Information Technology | Leave a comment