## Count of ways to split given string into two non-empty palindromes

Given a string S, the task is to find the number of ways to split the given string S into two non-empty palindromic strings. Examples:… Read More »

- Check if sum of Fibonacci elements in an Array is a Fibonacci number or not
- Count of subarrays having exactly K perfect square numbers
- Check if given words are present in a string
- Kth most frequent Character in a given String
- Sorting a Map by value in C++ STL
- LRU Cache in Python using OrderedDict
- Length of the smallest substring which contains all vowels
- Longest permutation subsequence in a given array
- Remove odd frequency characters from the string
- Real-time application of Data Structures
- Count triplets such that sum of any two number is equal to third | Set 2
- CamelCase Pattern Matching
- Count of substrings of length K with exactly K distinct characters
- Longest increasing sub-sequence formed by concatenating array to itself N times
- Count the elements having frequency equals to its value
- Check if an Array is a permutation of numbers from 1 to N
- Count of greater elements for each element in the Array
- Count of subarrays whose sum is a perfect square
- Count triplets in an array such that i<j<k and a[j] - a[i] = a[k] - a[j] = D
- Shortest subarray to be removed to make all Array elements unique
- Sum and product of K smallest and largest Fibonacci numbers in the array
- Minimum number of Water to Land conversion to make two islands connected in a Grid
- Program to implement Separate Chaining in C++ STL without the use of pointers
- Count numbers divisible by K in a range with Fibonacci digit sum for Q queries
- Array range queries to count the number of Fibonacci numbers with updates
- Remove duplicates from string keeping the order according to last occurrences
- Largest lexicographical string with at most K consecutive elements
- Maximum sum subarray having sum less than or equal to given sum using Set
- Length of longest subsequence of Fibonacci Numbers in an Array
- Minimum number of swaps required to make the string K periodic

Given a string S, the task is to find the number of ways to split the given string S into two non-empty palindromic strings. Examples:… Read More »

Given an array arr[] of size N, and Q queries of the form {i, k} for which, the task is to print the most frequent… Read More »

Given an array arr[] of N integers, the task is to find the maximum absolute difference between distinct elements of the array. Examples: Input: arr[]… Read More »

Given an array arr[] of N integers, the task is to find the size of largest subarray with frequency of all elements same. Examples: Input:… Read More »

Given an array arr[] of length N, the task is to print the number of array elements which cannot form a pair with any other… Read More »

Hashing is a technique that uses fewer key comparisons and searches the element in O(n) time in the worst case and in O(1) time in… Read More »

Given an array of integers, we need to print k most frequent elements. If there is a tie, we need to prefer the elements whose… Read More »

Given N lists of strings, the task is to find the count of lists which are not a sublist of any other given lists. Examples:… Read More »

Given a string str and an integer K, the task is to find the length of the longest sub-string S such that every character in… Read More »

Given two arrays arr1[] and arr2[] consisting of strings, the task is to print the count of anagrams of every string in arr2[] that are… Read More »

Given a very large number N in form of string and a number K, the task is to print all the K-digit repeating numbers whose… Read More »

Given an array arr[], the task is to determine the number of elements of the array which are not divisible by any other element in… Read More »

Given an array arr[] containing positive integers, the task is to find the minimum number of operations to be done on the array to make… Read More »

Given an array of integers arr[] of size N, the task is to count all the elements of the array which have a frequency equals… Read More »

Given x coordinates of N vertical lines (parallel to Y-axis) and M line segments extending from (x1, y1) to (x2, y2), the task is to… Read More »