All Hard Articles
Given a 2-D array of N rows and M columns and an integer K. The task is to find whether is it possible to take… Read More
This article talks about the problems of conventional RNNs, namely, the vanishing and exploding gradients, and provides a convenient solution to these problems in the… Read More
Given an array arr[] consisting of positive integers, the task is to check whether we can modify the array by adding any of the elements… Read More
A number can always be represented as a sum of squares of other numbers. Note that 1 is a square, and we can always break… Read More
In this article, we will share a very simple JavaScript code snippet through which you can easily integrate your webcam into an HTML5 web page.… Read More
String interpolation is a great programming language feature that allows injecting variables, function calls, and arithmetic expressions directly into a string. String interpolation was absent… Read More
Given a binary matrix mat[][] containing 0’s and 1’s. Each row of the matrix is sorted in the non-decreasing order, the task is to find… Read More
Given three arrays firstkey[], secondkey[] and value[] where elements firstkey[i] and secondkey[i] denotes a composite key and their value is value[i], the task is to… Read More
Given a digit sequence S, the task is to find the number of possible decodings of the given digit sequence where 1 represents ‘A’, 2… Read More
Given two Linked list L1 and L2. The second list L2 contains all the nodes of L1 along with 1 extra node. The task is… Read More
Selenium’s Python Module is built to perform automated testing with Python. ActionChains are a way to automate low-level interactions such as mouse movements, mouse button… Read More
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 an array arr[] containing N elements, the task is to remove a subarray of minimum possible length from the given array such that all… Read More
Given a singly linked list and an integer K, the task is to remove all the continuous set of nodes whose sum is K from… Read More
Given a sorted array arr[] consisting of N integers without any duplicates, the task is to find the ranges of consecutive numbers from that array.Examples:… Read More
Prerequisite: NP-Completeness NP Problem: The NP problems set of problems whose solutions are hard to find but easy to verify and are solved by Non-Deterministic Machine in… Read More
Design a Data Structure that can support the following operations in O(1) Time Complexity. insert(x): Inserts x in the data structure. Returns True if x… 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:   Input:… 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 an undirected weighted complete graph of N vertices. There are exactly M edges having weight 1 and rest all the possible edges have weight… Read More