### Validate Binary Search Tree

Link to leetcode problem definition Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as…

Link to leetcode problem definition Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as…

A simple demo of creating linked list from array

Use stream api to quickly sort a 2D array in Java.

The below code snippet demonstrates how to transform a set collection to list. Simply pass a set in constructor of List:

Link to leetcode problem definition Given a sorted array and a target value, return the index if the target is found. If not, return the…

Inspiration of this problem comes from Max Howel's interview experience with Google described in this tweet. Lets jump to the problem The…

Link to leedcode problem definition Suppose you have a random list of people standing in a queue. Each person is described by a pair of…

link to leedcode problem definition Write a function that reverses a string. The input string is given as an array of characters char[]. Do…