Given an array of positive distinct integers. We need to find the only element whose replacement with any other value makes array elements distinct consecutive.… Read More »

#
All Medium Articles

Google Guava is an open-source(a decentralized software-development model that encourages open collaboration) set of common libraries for Java, mainly developed by Google engineers. It helps… Read More »

Given an array arr[]. Determine whether it is possible to split the array into two sets such that the sum of elements in both the… Read More »

Given an array, we partition a row of numbers A into at most K adjacent (non-empty) groups, then the score is the sum of the… Read More »

Given a tree and weights of nodes. Weights are non-negative integers. Task is to find maximum size of a subtree of a given tree such… Read More »

Robot is part of java.awt package . Robot class is basically used to generate native system input events for the purposes of self- running demos,… Read More »

Prerequisite : Tuples in C++ Structured binding is one of the newest features of C++17 that binds the specified names to subobjects or elements of… Read More »

Given an array and k, we need to find the minimum operations needed to make GCD of the array equal or multiple of k. Here… Read More »

Prerequisite :Basic knowledge of STL and Sets Data structure. About ordered set Ordered set is a policy based data structure in g++ that keeps the… Read More »

You are given an array of size ‘n’. You have to replace every pair of consecutive values ‘x’ by a single value ‘x+1’ every time… Read More »

Given a number check whether binary representation of its predecessor and its 1’s complement are same or not. Examples: Input : 14 Output : NO… Read More »

You are given the slope of one line (m1) and you have to find the slope of another lie which is perpendicular to the given… Read More »

Write a function to count number of smaller elements on right of each element in an array. Given an unsorted array arr[] of distinct integers,… Read More »

Given n points, we need to check if these n points are parallel to X axis or Y axis or to No axis. Examples: Input… Read More »

Given an array, we need to find the maximum height of the triangle which we can form, from the array values such that every (i+1)th… Read More »

Given a string s we have to find the lexicographical maximum substring of a string Examples: Input : s = “ababaa” Output : babaa Explanation… Read More »

Given a string s we have to find the length of the longest substring of s which contain exactly K distinct vowels. Examples: Input :… Read More »

Cryptography is the branch of science which deals with the encoding of information for the purpose of hiding messages. It plays a vital role in… Read More »

It was a recruitment drive at Pune, for Kindle team (Chennai). Round 1 (Screening): Two common questions were given to all. We’re supposed to discuss… Read More »

Web page scraping can be done using multiple tools or using different frameworks in Python. There are variety of options available for scraping data from… Read More »