All Medium Articles
Given a grid grid[][] with 4 types of blocks:  1 represents the starting block. There is exactly one starting block. 2 represents the ending block.… Read More
Stack: A stack is a linear data structure in which elements can be inserted and deleted only from one side of the list, called the… Read More
In machine learning, gradient descent is an optimization technique used for computing the model parameters (coefficients and bias) for algorithms like linear regression, logistic regression,… Read More
Given an undirected graph with multiple connected components, the task is to clone the graph. Cloning a graph with a single connected component can be… Read More
Regression Testing is the process of testing the modified parts of the code and the parts that might get affected due to the modifications to… Read More
List iteration is common in Python programming, but sometimes one requires to print the elements in consecutive pairs. This particular problem is quite common and… Read More
Many times, we come over the dumped data that is found in the string format and we require it to be represented in the actual… Read More
Given an unsorted array, count all distinct elements in it. Examples: Input : arr[] = {10, 20, 20, 10, 30, 10} Output : 3 Input… Read More
Given an integer N, the task is to generate N non-repeating random numbers. Examples:   Input: N = 5 Output: 1 5 2 4 3 Input: N… Read More
Mid-point Ellipse algorithm is used to draw an ellipse in computer graphics. Also refer : Midpoint line algorithm, Midpoint circle algorithm   Midpoint ellipse algorithm plots(finds)… Read More
Online Round(On Cocubes):- In this round there were an MCQ section(contained questions on aptitude and CS fundamentals) and a coding section( was pretty simple with… Read More
Given a map, the task is to clone that map. Following are the 5 different ways to Clone a Map in Java. Example: {1=Geeks, 2=For,… Read More
In programming languages, Identifiers are used for identification purpose. In Scala, an identifier can be a class name, method name, variable name or an object… Read More
Given N segments (or ranges) represented by two non-negative integers L and R. Divide these segments into two non-empty groups such that there are no… Read More
Given an integer N and a pizza which can be cut into pieces, each cut should be a straight line going from the center of… Read More
In LocalDate class, there are three types of now() method depending upon the parameters passed to it. now() now() method of a LocalDate class used… Read More
Thanks to my friend who told me all this.w Round 1: Tell me about yourself. Trapping Rain Water :Given n non-negative integers representing an elevation… Read More
Prerequisite: Introduction to word2vecNatural language processing (NLP) is a subfield of computer science and artificial intelligence concerned with the interactions between computers and human (natural)… Read More
Linear Regression:  It is the basic and commonly used type for predictive analysis. It is a statistical approach to modeling the relationship between a dependent… Read More
Given a matrix mat[][] containing the characters [1 – 9], P and * where P is a person and * is an empty space. An… Read More