Skip to content
C Sharpens
  • Home
  • About Us
  • Contact Us
  • Learn C# Online
  • Privacy Policy

Solutions

Implementing Binary Tree in C# using Arrays

November 2, 2015 by Sajjad Arif Gul
Balanced Binary Search Trees (BST) is nothing new. A binary tree is a special kind of tree, one that limits each node to no more than two children. A simple Binary Search Tree written in C# that can be used to store and retrieve large amounts of data quickly. This tutorial gives an introduction to Binary Search Trees.

Read more

Categories C#, Source Codes Tags Console Application, Solutions 1 Comment

Create Doubly Linked List from Scratch in C# without using Builtin class

October 26, 2015 by Sajjad Arif Gul
I have coded doubly Linked List from scratch without using built in List Class. Doubly Linked List inserts and removes elements fast. The following code example demonstrates many features of the doubly Linked List. let's see how we go about implementing a Doubly Linked List in C#.

Read more

Categories C#, Source Codes Tags Console Application, Solutions

Create Linked List from Scratch in C# without using Builtin class

October 16, 2015 by Sajjad Arif Gul
I have code Linked List from scratch without using built in List Class. Linked-List inserts and removes elements fast. The following code example demonstrates many features of the Linked List. let's see how we go about implementing a Simple Linked List in C#.

Read more

Categories C#, Source Codes Tags Console Application, Solutions

String Processing Algorithm in C# from Scratch with example

October 2, 2015 by Sajjad Arif Gul

This Program is the implementation of Finding Length of string, Finding Substring in String, concatenation of two strings, inserting, deleting & replacing substring in a string and brute force algorithm in C#. Source Code : Output :

Categories C#, Source Codes Tags Console Application, Solutions

Implement Quicksort Algorithm from Scratch in C#

September 24, 2015 by Sajjad Arif Gul
C#. Quicksort is a very elegant general purpose sorting algorithm. Quicksort is a divide and conquer sorting algorithm. This example uses the quicksort algorithm to sort an array of string elements. this is tutorial on how to write a quick sorting Algorithm in C# Using Visual Studio.

Read more

Categories C#, Source Codes Tags Console Application, Solutions

Check if Parentheses are Balance in C#

September 15, 2015 by Sajjad Arif Gul
Windows form application program source code for checking balance of parentheses. Checking string has balanced parentheses. Function to match parenthesis '(' and ')' . Check Parentheses using stack. Check for balanced parentheses in an expression.

Read more

Categories C#, Source Codes Tags Console Application, Solutions

Implement Circular Queue in C# from scratch

September 3, 2015 by Sajjad Arif Gul
Example of Implementation of a circular queue in C#. The following example shows how to create and add values to a Queue and how to print out its values. circular queue of integers of user-specified size using a simple array.

Read more

Categories C#, Source Codes Tags Console Application, Solutions

Implement Queue in C# from Scratch

August 26, 2015 by Sajjad Arif Gul
Queue Example in C# from scratch without using Built in class. Create design and implement Queue class. This C# tutorial uses the Queue generic collection. It provides examples for its syntax. Queue works like FIFO system. A queue is a list in which the first item added to the list will be the first one to be removed.

Read more

Categories C#, Source Codes Tags Console Application, Solutions

Implement Stack in C# from Scratch

August 14, 2015 by Sajjad Arif Gul
This code is not using built in stack class. i code this stack class from scratch. Create design and implement Stack class. Stack is a LIFO collection. It provides a powerful and simple last-in-first-out data structure. it follows the push-pop operations in C#.

Read more

Categories C#, Source Codes Tags Console Application, Solutions

Implement Merge Sort Algorithm in C#

August 1, 2015 by Sajjad Arif Gul
Write a program in c# that shows Merge Sorting in it. In an effort to refresh my mind with the MergeSort algorithm, I wrote the code below. C# Sorting Algorithm. Recursive & Iterative. Merge sort is a sorting algorithm which is based on Divide-and-conquer paradigm.

Read more

Categories C#, Source Codes Tags Console Application, Solutions
Post navigation
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 Next →
© 2025 C Sharpens • Built with GeneratePress