Introduction This tutorial will check if a Binary Tree is Binary Search Tree or not. We know that a binary search tree (BST) is a node based binary tree data structure which satisfies the following properties: The left sub-tree of a node contains only nodes with keys less than the root node’s key. The right sub-tree…

Posted in Java

Check if a Binary Tree is Binary Search Tree or not

Finding start and end index of an element in a sorted array using Kotlin programming language will be shown here. The array may contain duplicate elements and we will see how to find a start and end index for an element in this array elements. We may design the algorithm for finding start and end…

Posted in Kotlin

Finding Start and End Index of an element in a sorted Array using Kotlin

Introduction Autocomplete allows you to easily create autocomplete and auto-suggest boxes for text input fields. When you start a search on Google, you can find the information you are looking for using search predictions. Search predictions are possible search terms you can use that are related to the terms you are typing and what other…

Posted in AJAX Spring Boot Spring REST

Spring Boot MVC AutoComplete using jQuery

This example shows how Binary Search Algorithm works and I am going to implement it using C programming language. Binary search, also known as half-interval search, logarithmic search, or binary chop, is a search algorithm that finds the position of a target value within a sorted array. Binary search compares the target value to the…

Posted in Array C Search Algorithm

Binary Search using C

This example shows how Sequential Search algorithm works. In sequential or linear search an element is searched or found in a list. Simple way to search for a key value k in an array a is to compare the values of the elements in a with k. The process starts with the first element of…

Posted in Array C Search Algorithm

Sequential Search using C

This tutorial example will show you how to search an element in Java ArrayList in both case sensitive and case insensitive way.

Posted in Java

Searching an element in Java ArrayList