Moses Yap
:-) A happy IT Guy

C#: Creating a Singly Linked List using Generics

May 4, 2008 14:03 by mosesyap
This is more for exercise more than anything else.  By the way, in .NET 3.5, the System.Collection.Generics has a LinkedList<T> class that represents a doubly linked list.  I wanted to test out some stuff in this practice.  Using an indexer and using an enumerator.  Here's... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories: .NET | Algorithms | C#
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

C#: Reversing the order of the letters on each words in a sentence

May 4, 2008 13:23 by mosesyap
Here is a simple exercise.  We have a sentence and we want to reverse the order of the characters on each word without reversing the order of the words in the sentence.  I think I read this before from the net as a Microsoft Interview question or something of that line. Ex. Input: The qu... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories: .NET | Algorithms | C#
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Algorithm: Sorting using Selection Sort

April 26, 2008 15:46 by MosesYap
Selection sorting is pretty much similar in terms of efficiency to Bubble sorting.  The difference is that unlike Bubble sorting where you continually compare and swap values, in selection sort, you can think of it as filling up slots with the smallest number found in the pool. Ex. Lets ... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories: .NET | C# | Algorithms
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Algorithm: Sorting using Bubble Sort (2 techniques)

April 26, 2008 15:09 by MosesYap
This article is about bubble sorting using C#. It shows 2 techniques, the first is to compare every number with all other numbers, the second is using a boolean to keep track if there are still swaps.. [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories: .NET | C# | Algorithms
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Algorithm: Sorting using Insertion Sort

April 26, 2008 13:12 by MosesYap
Insertion Sort implementation using C#. [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags: ,
Categories: .NET | C# | Algorithms
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed