Monthly Archives: January 2013

Print all interleavings of given two strings

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; using System.IO; using System.Text.RegularExpressions; namespace ConsoleApplication1 { class Program { public static ArrayList distinctStrings = new ArrayList(); static void Main(string[] args) { string str1 = "abc"; string str2 = "a2c"; … Continue reading

Posted in Information Technology | Leave a comment

Arranging heights based on number of persons of greater height standing in front of him

You are given two arrays, first array contain integer which represent heights of persons and second array contain how many persons in front of him are standing who are greater than him in terms of height and forming a queue. … Continue reading

Posted in Information Technology | Leave a comment