All Medium Articles
Given a string, count how many maximum-length palindromes are present. (It need not be a substring) Examples:  Input : str = "ababa" Output: 2 Explanation… Read More
Write a program to print all the combinations of factors of given number n. Examples:  Input : 16 Output :2 2 2 2 2 2… Read More
Evive Software Analytics visited our campus. Round 1: This was an online test. The test consisted of 17 descriptive questions on probability, permutations and combinations,… Read More
Javascript Math.random() function is used to return a floating-point pseudo-random number between range [0,1), 0 (inclusive), and 1 (exclusive). This random number can then be… Read More
Given two integers N and D, Find a set of N integers such that the difference between their product and sum is equal to D.… Read More
Array classes are generally more efficient, light-weight and reliable than C-style arrays. The introduction of array class from C++11 has offered a better alternative for… Read More
I gave offcampus interviews for Media.net for the profile of Web Developer. Here are the questions asked.- Round 1 (via skype) Question- Given a numeric… Read More
In this article, a basic technique for object segmentation called Thresholding. But before moving into anymore detail, below is a brief overview of OpenCV. OpenCV… Read More
The g++ compiler also supports some data structures that are not part of the C++ standard library. Such structures are called policy-based data structures. These… Read More
C++
Sahil and Ritik are brothers. One day they were discussing who is smarter. But gradually the discussion turned into an argument. Mother came and tried… Read More
Sahil and Amrit are friends. One day Amrit comes to Sahil’s home to take him outside so that they can play together. But Sahil denies… Read More
Prerequisite – Process Synchronization, Monitors, Readers-Writers Problem Considering a shared Database our objectives are: Readers can access database only when there are no writers.Writers can… Read More
Given two strings ‘a’ and ‘b’ and a number k, our aim is to merge the strings into a string s such that it contains… Read More
A computer network is designed to send information from one point to another. Data that we send can either be digital or analog. Also, signals… Read More
Priority queues are a type of container adaptors, specifically designed such that the first element of the queue is either the greatest or the smallest… Read More
Given a string S. Print the lexicographically smallest string possible. You can make minimal changes to the characters in the string and you can permute… Read More
Given two numbers, fact and n, find the largest power of n that divides fact! (Factorial of fact). Examples:  Input : fact = 5, n… Read More
Given a Binary Tree with children Nodes, Return a random Node with an equal Probability of selecting any Node in tree.Consider the given tree with… Read More
Write a program to print first n non-square number (non perfect square) . Examples :  Input : 5 Output : 2 3 5 6 7… Read More
Call decimal number a monotone if: . Write a program that takes the positive number n on input and returns a number of decimal numbers of… Read More