All Medium Articles
Given two numbers X and d where X represents the number of non empty subsequences and d represents the difference. Output an array of size… Read More
Given a positive integer N, find out how many positive integers strictly less than N have the same number of set bits as N. Examples:  … Read More
Prerequisite – 8254 Programmable Interval Timer After power-up, the state of the 8254 is undefined. The Mode, count value, and output of all Counters are… Read More
Prerequisite – Mealy and Moore machines A sequence detector is a sequential state machine that takes an input string of bits and generates an output 1… Read More
Given an array of non-negative integers and an integer k, find the subset of maximum length with bitwise OR equal to k. Examples:   Input :… Read More
Let’s consider a trip booking service, how they work with different plans and packages. There is a list of product which subscriber gets on subscribing… Read More
A Comma-Separated Values (CSV) file is just a normal plain-text file, store data in column by column, and split it by a separator (e.g normally… Read More
Suppose there is a circular road. There are n petrol pumps on that road. You are given two array, a[] and b[], and a positive… Read More
Given a coordinate (x, y) on a 2D plane. We have to reach (x, y) from the current position which is at origin i.e (0,… Read More
The Incremental Process Model is also known as the Successive version model. This article focuses on discussing the Incremental Process Model in detail. Table of Content… Read More
Capability Maturity Model (CMM) was developed by the Software Engineering Institute (SEI) at Carnegie Mellon University in 1987. It is not a software process model. It… Read More
Round 1: The first round consists of 15 c aptitude questions and 10 aptitude questions. Out of 15 c-aptitude questions, 10 were allocated 1 marks… Read More
A Levelwise GCD/LCM alternating segment tree is a segment tree, such that at every level the operations GCD and LCM alternate. In other words at… Read More
Postman: Postman is an API(application programming interface) development tool that helps to build, test and modify APIs. Almost any functionality that could be needed by… Read More
I applied for DE Shaw off campus through their site. Round 1 (Online round): After a few weeks, a hackerrank link was provided for an online… Read More
Differences :  | set | unordered_set --------------------------------------------------------- Ordering | increasing order | no ordering | (by default) | Implementation | Self balancing BST | Hash… Read More
We are given a read only array of n integers. Find any element that appears more than n/3 times in the array in linear time… Read More
Comparison table yield(), join(), sleep() property yield() join() sleep() purpose If a thread wants to pass its execution to give chance to remaining threads of… Read More
Given a Binary Circular Array of size N elements and two positive integers x and y indicating the indices in the circular array. The task… Read More
Given an array A[] of n elements and an integer k. The task is to find the number of triplet (x, y, z), where 0… Read More