binary search

Binary Search using Kotlin – Searching Algorithms #1

In this article, let us discuss one more Algorithm – Binary Search which is the most frequently asked Algorithms during Interviews. Let us discuss about it in brief and how to implement its algorithm using Kotlin Programming Language. According to Wikipedia, A Binary Search is a search algorithm that finds the position of a target value within a sorted array. The …

hackland election

HackLand Election – Coding Interview Questions #1

This series will be focused on Coding interview questions curated from various interviews / via online source. ”  Hackland Election There are n citizens voting in this year’s Hackland election. Each voter writes the name of their chosen candidate on a ballot and places it in a ballot box. The candidate with the highes number of votes win the election; if two or …