We all know that Graph is very important part to be learn if you are a CS/IT student.So here we are to explain the concept of Graph Theory.Let's have a look at it.Getting started with the definition of Graph Theory as "A graph is a pictorial representation of a set of objects where some pairs of objects are connected by links...."

Home » Archives for October 2017

# Month: October 2017

Web Server is a system or computer that is used to store all the files and folders (HTML files, css, Images, JavaScript files) and can be viewed or accessed by End User. Suppose A person wants to open coderinme.com , he/she will open Web Browser and type<strong> coderinme.com </strong> then it will send a request to server , server will respond and send the requested page, Browser will display it by rendering.

JavaScript Array Reduce We all heard about what is looping over a collection is.., but what about reducing a collection stands for…?? Let’s have an idea of JavaScript array reducing. When we read about collection or looping or reducing, it sounds scary, for somebody it is equals to a nightmare to be faced. But here I’m going to make it understand in very simple and basic language. Firstly, I’m giving you a basic example which is used or seen by …

Program to calculate the area and perimeter of rectangle and area and circumference of circle. calculate the area and perimeter of rectangle and area and circumference of circle. we know the rectangle area=l*b perimeter= 2(l+b) circle 2*pi*r and pi*r*r let’s begin #!/bin/bash (bash copy) read -p "Enter radius of circle: " radius read -p "Enter length of rectangle: " length read -p "Enter breadth of rectangle: " breadth pi=`seq -f '4/%g' 1 2 99999 | paste -sd-+ | sed "s/^/;scale=5;/g"| …

Jumping on the Clouds: Revisited Hackerrank Aerith is playing a cloud game! In this game, there are n clouds numbered sequentially from 0 to n-1. Each cloud is either an ordinary cloud or a thundercloud. Aerith starts out on cloud 0 with energy level E=100. She can use 1 unit of energy to make a jump of size k to cloud (i+k)%n, and she jumps until she gets back to cloud 0. If Aerith lands on a thundercloud, her energy …

Diagonal Difference Given a square matrix of size N X N, calculate the absolute difference between the sums of its diagonals. Input Format The first line contains a single integer, N. The next N lines denote the matrix’s rows, with each line containing N space-separated integers describing the columns. Output Format Print the absolute difference between the two sums of the matrix’s diagonals as a single integer. Sample Input 3 11 2 4 4 5 6 10 8 -12 Sample …

length conversion using shell As you have learned some thing about shell in previous post leap year so let’s do it again code to learn length conversion using shell Convert the distance from Km into cm ,m , inch & feet #!/bin/bash (bash copy) read -p "Enter the distance between two cities (in km): " dist meters=`expr $dist \* 1000` centimeter=`expr $dist \* 100000` feet=`bc <<< "scale=2;$dist * 3280.84"` inch=`bc <<< "scale=2;$dist * 39370.1"` echo "(in meters): $meters" echo "Distance …