All Medium Articles
This class provides methods for creating URI instances from its components or by parsing the string form of those components, for accessing and retrieving different… Read More
Validate if a given string is numeric. Examples: Input : str = "11.5" Output : true Input : str = "abc" Output : false Input… Read More
Prerequisite: Pointers Introduction  Consider the following program:  C #include<stdio.h>   int main() {   int arr[5] = { 1, 2, 3, 4, 5 };   int *ptr… Read More
The Boolean data type is one of the primitive data types in both C++ and Java. Although, it may seem to be the easiest of… Read More
Given an array ‘a[]’ and number of queries q. Each query can be represented by l, r, x. Your task is to print the number… Read More
Given a fixed set of points. We need to find convex hull of given set. We also need to find convex hull when a point… Read More
Given a positive integer ‘n’ having ‘x’ number of set bits in its binary representation. The problem is to find the next greater integer(smallest integer… Read More
Prerequisite : MongoDB : An introduction MongoDB is a cross-platform, document-oriented database that works on the concept of collections and documents. MongoDB offers high speed,… Read More
Given an array A[0 … n-1] containing n positive integers, a subarray A[i … j] is bitonic if there is a k with i <=… Read More
Given a 2D array, print it in reverse spiral form. We have already discussed Print a given matrix in spiral form. This article discusses how… Read More
Also known as Gravity sort, this algorithm was inspired by natural phenomena and was designed keeping in mind objects(or beads) falling under the influence of… Read More
Given three integers a, b, n .Your task is to print number of numbers between a and b including them also which have n-divisors. A… Read More
Given a rectangular grid of dimension 2 x n. We need to find out the maximum sum such that no two chosen numbers are adjacent,… Read More
In Python, we sometimes need to save the object on the disk for later use. This can be done by using Python pickle. In this… Read More
Python is a widely used general-purpose, high-level programming language. In this article, we will learn about pickling and unpickling in Python using the pickle module. The… Read More
Background Server Programs such as database and web servers repeatedly execute requests from multiple clients and these are oriented around processing a large number of… Read More
Position : Senior Android Developer The competency would be Tech Fit (Problem Solving, Data Structures & Algorithm) First Round: Telephonic Round: 1. Clone a linked… Read More
Senior android Developer Coding Round: Spirally traversing a matrix Longest Increasing Subsequence First Round: find “longest line” of 1’s in array. Hoizontal and Vertical. Array… Read More
Given ‘n’ points on the 2-D plane, find the maximum number of points that can be enclosed by a fixed-radius circle of radius ‘R’. Note: The… Read More
Given a number n, we need to calculate the sum of divisors of factorial of the number. Examples:  Input : 4 Output : 60 Factorial… Read More