Posts

Showing posts from January, 2019

Implementing a Binary Search Tree Using C

/*This is a programme to implement a binary search tree*/ #include<stdio.h> #include<stdlib.h> typedef struct treeNode {         int data;         struct treeNode *left;         struct treeNode *right; }treeNode; treeNode* FindMin(treeNode *node) {         if(node==NULL)         {                 /* There is no element in the tree */                 return NULL;         }         if(node->left) /* Go to the left sub tree to find the min element */                 return FindMin(node->left);         else                 return node; } treeNode* FindMax(treeNode *node) {         if(node==NULL)         {                 /* There is no element in the tree */                 return NULL;         }         if(node->right) /* Go to the left sub tree to find the min element */                 FindMax(node->right);         else                 return node; } treeNode * Insert(treeNode *node,int data) {         if(node==NULL)      

Lesser known Travel Places In Sri Lanka

Image
1.Moon Plains   Moon Plains ( also known as Sandatanne, Sandagalatanne) is the latest attraction open to public in Nuwara Eliya. T his was once the dump site of the tons of garbage used by the dwellers of the nearby city. It was cleaned and reconditioned in 2010, and is now classified as an Agricultural and Environmental Tourism Zone by the Municipality of Nuwara   Eliya .  The plains is located few kilometers off Nuwara Eliya town and is accessed passing the the Government Potato seed Farm at Sita Eliya. The main attraction of Moon Plains is the mini Worlds End at the edge giving a 360 Degree view of the surrounding peaks and towns. The plains is home to Elk, wild buffaloes, dear and many types of birds. This area is also  visited by leopards. Direction -   https://goo.gl/maps/1TNy9anQo1w