Month: February 2017

Write a Java Program to perform Selection Sort using static function

Java Program to perform Selection Sort Selection sort is a sorting algorithm which sorts the given array elements either in descending or ascending order by finding the misplaced element first and putting it in it’s final place. Selection sort algorithm first selects the lowest (or highest) element and places it in the ordered position. Selection

Write a C++ Program for Fedor’s Roadmap Navigation Problem

C++ Program for Fedor’s Roadmap Navigation Problem Fedor is a research scientist, who has recently found a roadmap of Ancient Berland. Ancient Berland consisted of N cities that were connected by M bidirectional roads. The road builders weren’t knowledgable. Hence, the start city and the end city for each road were always chosen randomly and