All Medium Articles
Problem: Design a Data Structure a SpecialQueue which supports following operations enqueue, deque, getMin() or getMax() where getMin() operation takes O(1) time.Example:   Let the data… Read More
Given two sorted array of size N. The task is to find the maximum number of elements in the first array which are strictly greater… Read More
Given a matrix mat[][] and an integer K, the task is to find the maximum neighbor within an absolute distance of K for each element… Read More
Given an array of N elements, the task is to minimize the maximum difference of adjacent elements by inserting at most K elements in the… Read More
Given an integer array A[] of length N and an integer K. The task is to find K distinct integral points that are not present… Read More
Given an integer N, the task is to count the number of N digit palindromic numbers containing digits from 1 to 9 and divisible by… Read More
Given an integer array arr[] of size N, the task is to count the number of sub-arrays that have an odd product.Examples:   Input : arr[]… Read More
Given an array arr[] of N co-ordinate points, the task is to check whether a straight line can be formed using these co-ordinate points. Input:… Read More
Autokey Cipher is a polyalphabetic substitution cipher. It is closely related to the Vigenere cipher but uses a different method of generating the key. It… Read More
Processing is an open-source programming language and development environment that is built on top of the Java programming language. It is specifically designed for artists,… Read More
Given an array arr[] of N integers and an integer K, our task is to find the length of the longest subarray such that for… Read More
Lodash _.cloneDeep() method is used to create a deep copy of the value and it recursively clones the value. The newly created object has the… Read More
Given an array arr[] and an integer K, the task is to find the number of merge operation required such that all the elements of… Read More
Rule-based classifiers are just another type of classifier which makes the class decision depending by using various “if..else” rules. These rules are easily interpretable and… Read More
Given an array arr[] of N integers, the task is to write the C program to find the maximum and minimum element of the given… Read More
Given an integer N, our task is the determine if the integer N is Peculiar Number. If it is then print “yes” otherwise output “no”.The… Read More
The std::istringstream is a string class object which is used to stream the string into different variables and similarly files can be stream into strings.… Read More
Given an integer array arr[] of size N and an integer X, the task is to find the longest sub-array where the absolute difference between… Read More
Online exam: The online test consisted of 28 MCQs and 2 coding questions, which were of medium level difficulty. It was followed by 4 technical… Read More
Given a rectangular grid NxM dimensions, the task is to find the minimum number of cuts required to break the given rectangular grid into a… Read More