All Medium Articles
Given that the three players playing a game of rolling dice. Player1 rolled a die got A and player2 rolled a die got B. The… Read More
The usePattern() method of Matcher Class is used to get the pattern to be matched by this matcher. Syntax: public Matcher usePattern(Pattern newPattern) Parameters: This… Read More
The pattern() method of Matcher Class is used to get the pattern to be matched by this matcher. Syntax: public Pattern pattern() Parameters: This method… Read More
The console.error() method in HTML is used to display an error message on the console. The console.error() method is used for testing purposes. The error… Read More
Given an array of N numbers, the task is to print all the numbers greater than 1 which divides the maximum of array elements.  Examples: … Read More
Tredence Analytics Pvt Lmt (eligibility 7 cgpa, 6.5lpa) Round 1 It was online test on amcat. It consists of aptitude from time, distance and speed.… Read More
Given two integer arrays ages and packs where ages store the ages of different students and an element of pack stores the number of candies… Read More
Given two number A and B, the task is to find the sum of common factors of two numbers A and B. The numbers A… Read More
There are a total of N tasks, labeled from 0 to N-1. Some tasks may have prerequisites, for example to do task 0 you have… Read More
Berkeley’s Algorithm is a clock synchronization technique used in distributed systems. The algorithm assumes that each machine node in the network either doesn’t have an… Read More
Given a total of N tasks that you have to pick, labelled from 0 to N-1. Some tasks may have prerequisite tasks, for example, to… Read More
Given a Binary Tree of distinct nodes and a pair of nodes. The task is to find and print the path between the two given… Read More
Given an integer m and n ranges (e.g. [a, b]) which are intersecting and overlapping. The task is to find all the number within the… Read More
Given a string . Find a string , where B is a palindrome and A is a subsequence of B. A subsequence of a string is a… Read More
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages… Read More
The two or more different div of same height can be put side-by-side using CSS. Use CSS property to set the height and width of… Read More
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages… Read More
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages… Read More
Conversion of infix to postfix expression can be done elegantly using two precedence function. Each operator is assigned a value (larger value means higher precedence)… Read More
Huffman Coding is a lossless data compression algorithm where each character in the data is assigned a variable length prefix code. The least frequent character… Read More