All Medium Articles
Given a tree as a set of edges such that every node has a unique value. We are also given a value k, the task… Read More
Prerequisite: Designing finite automata , Designing Deterministic Finite Automata (Set 3) In this article, we will see some designing of Deterministic Finite Automata (DFA). Problem-1:… Read More
The compile(String) method of the Pattern class in Java is used to create a pattern from the regular expression passed as parameter to method. Whenever… Read More
Given a ‘N*N’ matrix, the task is to find the XOR of XORs of all possible sub-matrices.Examples:  Input :arr = {{3, 1}, {1, 3}} Output… Read More
Given a number X ( 1<= X <= 9) and a positive number N, find the Nth positive number whose digital root is X.Digital Root:… Read More
Given a list of the nested dictionary, write a Python program to create a Pandas dataframe using it. We can convert list of nested dictionary… Read More
Given an array of n integers. The task is to find the maximum length of the sub-array such that absolute difference between all the consecutive… Read More
Given a binary tree, the task is to print the reverse level order in spiral form. Examples:  Input: 1 / \ 2 3 / \… Read More
Sometimes you might need to convert a list to dict object for some better and fast operation. Let’s see how to convert a list into… Read More
I applied for Microsoft internship(TECH SET GO 2018) through mettl.com. There were few basic criteria to apply like min 7  cgpa, no backlogs..it was a… Read More
Amazon conducted a pool placement at our college in the month of feb 2019. We were shared the link for a test hosted on HackerEarth… Read More
Gradient Descent is an optimization technique used in Machine Learning frameworks to train different models. The training process consists of an objective function (or the… Read More
Gradient Descent is an iterative optimization process that searches for an objective function’s optimum value (Minimum/Maximum). It is one of the most used methods for… Read More
Given an N * N matrix and q queries, each containing position of top-left and bottom-right corner of a rectangular sub-matrix, the task is to… Read More
Plotting using Object Oriented(OO) API in matplotlib is an easy approach to plot graphs and other data visualization methods. The simple syntax to create the… Read More
Given an array that represents the y coordinates of a set of points on a coordinate plane, where (i, arr[i]) represent a single point. Find… Read More
Given an array arr[] of N elements, the task is to find the length of the longest sub-sequence in arr[] such that all the elements… Read More
Given three integers A, B and C, the task is to find the count of values of X such that the following condition is satisfied, X… Read More
Given an integer N, the task is to find the number of trailing zeroes in the base 16 representation of the factorial of N. Examples: … Read More
The HTML Scientific Calculator is a tool for performing advanced scientific calculations like finding exponents, logarithms, factorials, and more. This calculator comprises two sections: the… Read More