Subarrays with sum K
Given an unsorted array of integers, find the number of continuous subarrays having sum exactly equal to a given number k. […]
Given an unsorted array of integers, find the number of continuous subarrays having sum exactly equal to a given number k. […]
Given a string s of zeros and ones, return the maximum score after splitting the string into two non-empty substrings (i.e. left substring and right substring). The score after splitting a
Given an array of strings, return all groups of strings that are anagrams. The groups must be created in order
You have planned some train traveling one year in advance. The days of the year in which you will travel
Given an array arr[] of non-negative integers. Find the length of the longest sub-sequence such that elements in the subsequence are consecutive integers, the consecutive
Given the integers zero, one, low, and high, we can construct a string by starting with an empty string, and then at each step
Given two arrays a[] and b[],the task is to find the number of elements in the union between these two arrays. The Union of
You are given a list of strings of the same length words and a string target. Your task is to form target using the given words under the
Efficient computation of subarray sums is a common problem in programming. One effective approach is the two-pointer technique, which allows
Given two integer arrays a[] and b[], you have to find the intersection of the two arrays. Intersection of two arrays is said to be elements that are
Given an integer array nums and an integer k, find three non-overlapping subarrays of length k with maximum sum and return them. Return the result
You are given an integer array nums and an integer target. You want to build an expression out of nums by adding one of the