Skip to content
All Medium Articles
Below is the example of the Math random() Method. Example: For getting a random number between 0(inclusive) and 1(exclusive). <script type="text/javascript">     var random = Math.random(… Read More
Prerequisite : Sets in Python Given three arrays, we have to find common elements in three sorted lists using sets. Examples : Input : ar1… Read More
Given two integers N and D, Find a set of N integers such that difference between their product and sum is equal to D.Examples :  … Read More
Newspapers and magazines often have crypt-arithmetic puzzles of the form: Examples: Input : s1 = SEND, s2 = "MORE", s3 = "MONEY" Output : One… 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
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
Given 2n counters where n > 1. You have to place these 2n counters on an n × n board so that no more than… 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… 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
Prerequisite – Block Coding, Line Coding A computer network is designed to send information from one point to another. Data that we send can either… Read More
Priority queues are a type of container adaptors, specifically designed such that the first element of the queue is the greatest of all elements in… 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
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 which takes positive number n on input and returns number of decimal numbers of length n… Read More
Given a number, the task is to toggle bits of the number except the first and the last bit.Examples:   Input : 10 Output : 12… Read More
Given a doubly linked list containing n nodes. The problem is to reverse every group of k nodes in the list. Examples:   Recommended: Please try… Read More
Given a sequence, find the length of the longest palindromic subsequence in it. Examples: Input : abbaab Output : 4 Input : geeksforgeeks Output :… Read More
Given a linked list. arrange the linked list in manner of alternate first and last element. Examples:  Input : 1->2->3->4->5->6->7->8 Output :1->8->2->7->3->6->4->5 Input :10->11->15->13 Output… Read More
arr.find() function is used to find the first element from the array that satisfies the condition implemented by a function. If more than one element… Read More

Start Your Coding Journey Now!