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 …

quick sort kotlin

Quick Sort Kotlin Implementation – Sorting Algorithms #4

Quick Sort is based on divide and conquer algorithmic technique, similar to Merge Sort. In this tutorial, we will be looking at  Quick Sort Kotlin Implementation. How Quick Sort Works? In Quick Sort, we will consider a random element of an array as pivot and partition the array into two – left part and right part. The main essence of …

merge sort kotlin

Merge sort Kotlin Implementation – Sorting Algorithms #3

Merge Sort is sorting based on Divide and Conquer strategy and is one of the famous algorithms among Sorting. In this article, we will be discussing about Merge Sort Kotlin Implementation. How Merge sort Works? Merge sort algorithm technique basically involves two processes – one process splits the array into two halves and sorts them individually. The other process involves …

bubble sort kotlin

Bubble Sort Kotlin Implementation – Sorting Algorithms #2

Bubble Sort is the simplest Algorithm of all the sorting techniques. It compares two adjacent elements and swaps them if they are in wrong order. In this article we will focus on Bubble Sort Kotlin Implementation How Bubble Sort Works? Bubble sort works by iterating through the array of N elements, from the first element to the last, comparing each …

selection sort kotlin

Selection Sort Kotlin with Example – Sorting Algorithms #1

Selection Sort is one of the most important sorting algorithm frequently looked upon and is even asked in the Interviews. In this article we will look at Selection Sort Kotlin Implementation with example. Before diving into the code, let us see what is a Selection sort and Whether its efficient to use or not. What is a Selection Sort Selection sort is …

SQL JOIN – CROSS, INNER, LEFT, RIGHT joins with Examples

SQL JOIN SQL Join is one of the most frequently asked topics asked in interviews. Now a days, database operations are very common while dealing with data storage across web/mobile apps. Either to query a database stored in local(like SQLite) or a remote database (like MySQL), SQL operations help us retrieving the data easily. SQL Join, in particular, helps to …

android unit testing logo

Android Unit testing #1 – Writing a simple Unit Test using Robolectric

Android Unit Testing: Unit Testing is considered as the most professional and disciplined way of writing an elegant code across the software industry. Yet even many developers tend to skip writing unit tests as they are time consuming. When properly written, unit tests provide lots of advantages and helps reduce the build generation times to a great extent in the …

android recyclerview using kotlin

Android RecyclerView using Kotlin

Android Recyclerview is not new to us but Kotlin programming Language is. In fact, we’ve already discussed in our previous article about RecyclerView and CardView Implementation creating a very interesting project “SongBoard” where we’ve created recyclerview and cardview’s implementation and had seen different implementations for Linear, Grid, Staggered Grid and Horizontal implementations of RecyclerView Android. In this tutorial of Android …

android data binding

Android Data Binding Using Kotlin

Introduction: Android Data binding is one of the hot topic among Android developers ever since its first launch in Mid 2015, helping to build the apps faster. This Article explains about the same, Data binding Library concept and how to use it in android using Kotlin. Data Binding not only supports in eliminating boilerplate code but also helps in faster …