Browse by Tags

All Tags » Algorithm (RSS)
Sorry, but there are no more tags available to filter with.

Finding the max value in an array

using System; System; namespace FindMaxValue { class Program FindMaxValue { class Program class Program { static void Main( string [] args) { int [] myArray = new int [] {22,10,4,6,33,7,8,9,11}; Console .Write( MaxValue .FindMax(myArray)); Console .ReadLine...
Posted by sanjeebsarangi | 4 comment(s)
Filed under:

Programming Alogorithm Series: Bubble Sort

using System; namespace BubbleSort { class Program { static void Main(string[] args) { int[] array = new int[] {2,5,7,1,9,0,3,4,2,6,7,5}; // Before sorting for (int i = 0; i < array.Length - 1; i++) { Console.Write(array[i]); } Console.ReadLine();...
Posted by sanjeebsarangi | 6 comment(s)
Filed under:

Programming Alogorithm Series: Reverse an Array

Reverse an Array is one of the most common programming algorithm questions that is asked in many tech interviews. Here is a quick way with sample code: using System; System; namespace ReverseArray { /// <summary> /// Reverse an Array quickly //...
Posted by sanjeebsarangi | 22 comment(s)
Filed under:
More Posts