Monthly Archives: July 2013

Merging two sorted arrays with second array having trailing space to accommodate first array

using System; using System.Collections.Generic; using System.Collections; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int[] A = { 1, 4, 5, 6, 7 };//m = 5 int[] B = new int[8];//n … Continue reading

Posted in Information Technology | Leave a comment

List of possible words of given length from a letter matrix

using System; using System.Collections.Generic; using System.Collections; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace ConsoleApplication1 { class Program { public static int counter = 0; static void Main(string[] args) { char[,] matrix = { {'F', 'X', 'I', 'E'}, {'A', 'M', 'L', … Continue reading

Posted in Information Technology | Leave a comment

Write a program to find the occurrences of a given word in a specified 2D matrix of characters

using System; using System.Collections.Generic; using System.Collections; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace ConsoleApplication1 { class Program { public static int counter = 0; static void Main(string[] args) { char[,] matrix = { {'A', 'N', 'L', 'Y', 'S'}, {'I', 'S', … Continue reading

Posted in Information Technology | Leave a comment