All Medium Articles
Given a string, return the number of distinct substrings using Rabin Karp Algorithm. Examples:  Input : str = “aba”Output : 5Explanation :Total number of distinct… Read More
Given an array arr[] and integer K, the task is to split the array into subsets of size K, such that each subset consists of… Read More
Given an integer N, the task is to divide the numbers from 1 to N into two nonempty subsets such that the sum of elements… Read More
Given an array prices[] which denotes the prices of the stocks on different days, the task is to find the maximum profit possible after buying… Read More
Given an array arr[] of positive integers, the task is to find the permutation of the array such that the sum of adjacent elements is… Read More
The CTF or Check the Flag problem is posted on vulnhub.com. VulnHub is a platform which provides vulnerable applications/machines to gain practical hands-on experience in… Read More
Given a number N, the task is to count the number of unique digits in the given number. Examples: Input: N = 22342 Output: 2 Explanation:The digits… Read More
Given N items of type-1 and M items of type-2. An object can be created from 2 items of type-1 and 1 item of type-2… Read More
Given an integer K and an array arr[] which denotes the amount that can be stolen, the task is to choose a subset of items… Read More
Given three integers a, b, and c representing a linear equation of the form: ax + by = c. The task is to find the… Read More
Did you think data is only for big companies and corporations to analyze and obtain business insights? No, data is also fun! There is nothing… Read More
Mathematical operator symbols – These symbols are used to write and represent various mathematical functions such as log, cos, sin etc. Though we can write… Read More
OpenCV helps us to control and manage different types of mouse events and gives us the flexibility to operate them. There are many types of… Read More
Given an array arr[] of size N and an integer k, our task is to find the length of longest subarray whose sum of elements… Read More
The interface in the dart provides the user with the blueprint of the class, that any class should follow if it interfaces that class i.e.… Read More
Collaborative Filtering is a technique or a method to predict a user’s taste and find the items that a user might prefer on the basis… Read More
Let us see how to extract IP addresses from a file using Python.  Algorithm :   Import the re module for regular expression.Open the file using… Read More