Threaded Binary Trees are those in which the NULL right pointers of all nodes are...
Programming
There are generally 3 traversal strategies for Binary Trees – INORDER, PREORDER and POSTORDER. For...
A Binary Search is such a Binary Tree in which the info field of any...
Binary Trees are one of the core data structures used in any programming language...
Here is a C program which accepts an integer and prints out sum from...
Hailstones is a sequence of numbers that could be generated from any positive number...
Here is a C program to generate random numbers between any range of two...
The ‘for’ loop is another important looping structure which could replace ‘while’ and ‘do...
Below is a C program to test for a prime number – main(){ float...
Here is a C program that I wrote years back to implement Russian Peasant...
Here is an implementation of while loop in C to find numbers whose sum...
Here is a simple C program to find circumference and area of a circle from...
Like do-while loop, While loop is the most commonly used looping construct to repeat...
Here is a simple C program to find the sum of squares of first...
Looping constructs is an important programming language technique to repeat a process or calculation...
Below are simple C programs for beginners to learn if-else decision construct. Example 1:...
Here is a C program to check for leap year – main () {...
Decision making is an important aspect of programming language that enables the programmer to arrive...
C programming language allows to define and classify data so we can use it...
C language developed at Bell lab by Dennis Ritchie on UNIX environment. UNIX was...
Below is an example Recursive C program to perform Binary – int binsearch(int low,...
Below is an example recursive C program to return Fibonacci series for a given...
Here is a C program to find a factorial by recursive method – int...
Simple bubble sort in C – for (i=0; i<n-1; i++){ for(j=i+1; j<n; j++){ if(x[j]...
Below is an example to represent a Tree structure in C using struct
Below is a simple C program to perform file operation – include <stdlib.h> main()...
Writing C programs for numerical differentiation is interesting and fun. Here is one that...
Below is a C program to evaluate forward difference and thus print a forward difference...
Below is sample C program to convert a postfix string to prefix form. Also...
Below is sample C program to convert a prefix string to infix form. Also...
Below is an example that I prepared for preorder and postorder traversal of a...
Below is the algorithm and C routine for traversing a Binary Tree in postorder....
A binary tree can be traversed in two basic ways – preorder and postorder....
Binary Tree is a basic data structure that is used behind the scenes of...
Here is a simple light weight HTTP analyzer written in PHP. I wrote this...
Stack and Heap refers to 2 distinct memory areas utilized by an executing program...
Static modifier is commonly used in all programming languages. There are two distinct reasons for...
Both Arrays and Lists helps us to store list of elements. But which one...
C# provide two versions of File, Directory manipulation options – 1) Static methods based...
MVC architecture has been in place since past 4 decades or so when GUI (Graphical...
Below is a C# program to find Age from a Date of Birth. Enjoy!...
Lets see how to use params modifier in C#. The perfect example is Calculator...
Constructors need to be overloaded depending on what extend of data/properties need to be...
LINQ or Language Integrated Query gives the capability to query objects and C# allows...
Below is very simple usage of DateTime – class DateTimePr { static void Main(string args) { var datetime = new DateTime(); var now = DateTime.Now;...
Below is a simple program in C# that reads a file and outputs the...
Below is a simple program to find the lowest number from a list of...
Here is some basic, simple, handy C# programs for you to enjoy and refresh...
Composition is a common object oriented concept that enables us to implement loose coupling...
Like any other Object Oriented Programming language, C# does not allow parent constructor to...
Well, C# provides this option to prove that it is flexible. If you are...
C# Generics are really useful when we want to reuse a class for different...
C# Indexers is a simple implementation of key/value pairs using Dictionary type. Below is...
We generally apply the concept of inheritance to implement a IS-A relationship. For example...
Interface is a similar language construct such as class, but fundamentally different from a...
We use abstract classes when the base class can’t have concrete implementation and that...
Below is a simple stop watch implemented in C#, enjoy!StopWatch using System; namespace StopWatchApp { public class StopWatch...
Below is a simple implementation of work flow engine using interfaces and the concept...
Every programming language allows to define and classify data so we can use it...