All instances in Python must be instances of a class that derives from BaseException. Two exception classes that are not related via subclassing are never… Read More

All Medium Articles

We are given a Trie with a set of strings stored in it. Now the user types in a prefix of his search query, we… Read More

If you want to build mobile apps for both Android and iOS. What should you learn? The individual native languages for each app i.e, Java… Read More

The copyreg module defines functions which are used by pickling specific objects while pickling or copying. This module provides configuration information about object constructors(may be… Read More

Prerequisite: List and Tuples Note: Output of all these programs is tested on Python3 1) What is the output of the following program? PYTHON L1 =… Read More

Determine whether a universal sink exists in a directed graph. A universal sink is a vertex which has no edge emanating from it, and all… Read More

Given an array of 0s and 1s, in how many iterations the whole array can be filled with 1s if in a single iteration immediate… Read More

Given an array of n duplicates or distinct integers sorted in ascending order, write a function that returns a Fixed Point in the array, if… Read More

Given a set of m distinct positive integers and a value ‘N’. The problem is to count the total number of ways we can form… Read More

1) Technical Round (Skype): Print all palindromic substrings of the given string. In a given binary tree, find the size of the largest BST. 2)… Read More

1) Online test with MCQs on OS, DBMS, basic algo ds. Coding problem: Find a tour that visits all stations 2) Telephonic Round 1Hey geek!… Read More

This article aims to introduce the use of the python library: qrtools. This library can be used to both read QR codes and generate them.… Read More

Given a n x n matrix. The problem is to find all the distinct elements common to all rows of the matrix. The elements can… Read More

Dynamic connectivity is a data structure that dynamically maintains the information about the connected components of graph. In simple words suppose there is a graph… Read More

is_permutations() is used to check if two containers like string and vector are permutation of each other. It accepts three parameters, the first two parameters… Read More

Given a circle of radius r and center in point(x1, y1) and given a point(x2, y2). The task is move center of circle from given… Read More

We know Fibonacci number, Fn = Fn-1 + Fn-2. First few Fibonacci numbers are 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89,… Read More

Given two integers m & n, find the number of possible sequences of length n such that each of the next element is greater than… Read More

Given a positive number N. The task is to find maximum sum of distinct numbers such that the LCM of all these numbers is equal… Read More