Given an array arr[] containing N integers and an array Q[] representing the range [L, R], the task is to find the greatest pair sum… Read More »

Given a number N. The task is to find the expected number of times a coin must be flipped to get N heads consecutively. Example:… Read More »

Given Two Strings s1 and s2 containing only lowercase letters of same length. The task is to make these strings equal by using the minimum… Read More »

Given weights and profits of N items, put these items in a knapsack of capacity W. The task is to print all possible solutions to… Read More »

Given two numbers A and B, the task is to check that A and B are in golden ratio. Golden Ratio: Two numbers are said… Read More »

Given an array arr[] of some positive integers and missing occurrence of a specific integer represented by -1, the task is to find that missing… Read More »

Given a non-empty sequence S and a dictionary dict[] containing a list of non-empty words, print all possible ways to break the sentence in individual… Read More »

Python is a great language for making data-based analysis and visualizations. It also helps that there is a wide range of open-source libraries that can… Read More »

Prerequisites: MO’s algorithm, SQRT Decomposition Given an array arr[] of N elements and two integers A to B, the task is to answer Q queries… Read More »

Given an array of integers arr[], the task is to maximize the product of the digit sum of every consecutive pairs in a subsequence of… Read More »

P-value, also referred to as probability value is a statistical measure used to determine whether to accept or reject the Null Hypothesis, considering the Null… Read More »

1. PostgreSQL (Object-Relational Database) : PostgreSQL is a powerful, open source object-relational database management system (ORDBMS) with an emphasis on extensibility and standards compliance that… Read More »

All things in the R language are considered objects. Objects have attributes and the most common attribute related to an object is class. The command… Read More »

Given a table of M * N. There are total M * N squares of size 1. You have to colour each side of all… Read More »

This stack consists of PostgreSQL, Express, React and Node.js. Combining these technologies, one can build a full-stack web application with CRUD operations. Everyone must have… Read More »

Given a binary tree with N nodes numbered [1, N], the task is to find the size of the smallest Dominating set of that tree.… Read More »

Python 3.9 is still in development and scheduled to be released in October this year. On Feb 26, alpha 4 versions have been released by… Read More »

Validation in node.js can be easily done by using the express-validator module. This module is popular for data validation. There are other modules available in… Read More »

Given an array arr of size N and Q queries of the form [L, R], the task is to find the number of divisors of… Read More »

Given a partially filled 9×9 matrix, digits (from 1 to 9) must be assigned to the empty cells so that every row, column, and submatrix… Read More »