All Medium Articles
Round 1.a 1. Min distance between two given nodes of a Binary Tree 2. Sort Array in single traversal, Without using any sorting algorithm Sort… Read More
Given a number s (1 <= s <= 1000000000). If s is sum of the cubes of the first n natural numbers then print n,… Read More
A Square pyramidal number represents sum of squares of first natural numbers. First few Square pyramidal numbers are 1, 5, 14, 30, 55, 91, 140,… Read More
Readability is the ease with which a reader can understand a written text. In natural language, the readability of text depends on its content (the… Read More
Given an array of n numbers, the task is to answer the following queries:  maximumSubarraySum(start, end) : Find the maximum subarray sum in the range… Read More
Given a tree and node data, the task to reverse the path to that particular Node. Examples:  Input: 7 / \ 6 5 / \… Read More
What are conditional wait and signal in multi-threading? Explanation: When you want to sleep a thread, condition variable can be used. In C under Linux, there… Read More
Round 1: First round was multiple choice question based on Core Java on inheritance, exception handling, type erasure, threading etc. Round 2: Second round was… Read More
A perfect power is a number that can be expressed as power of another positive integer. Given a number n, find count of numbers from 1… Read More
Given an array arr[] and an index in it. Find whether the array arr[] can be partitioned into two disjoint sets such that sum of… Read More
Given an array of n elements and an integer m, we need to write a program to find the number of contiguous subarrays in the… Read More
Amortized analysis refers to determining the time-averaged running time for a sequence (not an individual) operation. It is different from average case analysis because here,… Read More
In the previous article PHP Pagination | Set 2, we developed a simple pagination system that was logically correct but it was not visually appealing… Read More
The JavaScript Array.from() method is used to create a new array instance from a given array. In the case of a string, every alphabet of… Read More
Let pk(R) denotes primary key of relation R. A many-to-one relationship that exists between two relations R1 and R2 can be expressed as follows :… Read More
There are two primary transport layer protocols to communicate between hosts: TCP and UDP. Creating TCP Server/Client was discussed in a previous post.  Prerequisite: Creating… Read More
In Javascript(ES6), there are four ways to test equality which are listed below: Using ‘==’ operator Using ‘===’ operator SameValueZero: used mainly in sets, maps… Read More
CSMA/CD (Carrier Sense Multiple Access/ Collision Detection) is a media access control method that was widely used in Early Ethernet technology/LANs when there used to… Read More
Given a password entered by the user, check its strength and suggest some password if it is not strong. Criteria for strong password is as… Read More
Let n be any power raised to base 2 i.e 2n. We are given the number n and our task is to find out the… Read More