Bharat Kul Ratan·Jul 7, 2018Implementation of Gradient Descent in Linear RegressionProblem: Given some points(x,y) on 2-D graph we have to predict the line that fits them best.
Bharat Kul Ratan·Dec 9, 20178-queen problemThe eight queens puzzle is the problem of placing eight chess queens on an 8×8 chessboard so that no two queens threaten each other.
Bharat Kul Ratan·Oct 17, 2017A better way to look your git logsWhile searching for a better alternative to output of default git log command I came across this blog at
Bharat Kul Ratan·Oct 15, 2017Using Comparable and Comparator interfaces in JavaIn this tutorial we will learn how to sort a list of objects in Java. A list of primitive data type, for e.g. integers can be sorted by JVM…
Bharat Kul Ratan·Oct 15, 2017Nested classes in JavaClasses in Java are blueprint of Objects. These Objects are at the core of Object Oriented Programming (OOP). Generally classes are defined…
Bharat Kul Ratan·Oct 15, 2017Print all the paths between two nodes in a GraphIn this tutorial we will learn how to find all the simple paths(paths without a cycle) between two nodes in a graph. We are given a graph…
Bharat Kul Ratan·Oct 15, 2017Lazy propagation in Segment TreeIn the last last tutorial we learned how to build a Segment tree, query it and update point values to it. In this tutorial we will learn a…
Bharat Kul Ratan·Oct 15, 2017Introduction to Segment TreeSegment tree is a data structure similar to heap. Every node of this tree has zero or two children. Nodes having zero child are called leaf…
Bharat Kul Ratan·Sep 19, 2017Bit Shift Operators in JavaJava provide us some operators which shifts the bit pattern of the integral type data. There are three such operators, signed right…
Bharat Kul Ratan·Sep 18, 2017Coin Change problemIn this tutorial we will learn about the Coin change problem. The problem asks for number of ways of making changes for a particular amount…