Problem Description
Given an array of non-negative integers, find the indices of the first subarray whose sum equals a …
Turning data structures & algorithms into superpowers 💪
One line at a time! 🚀
🚀 Explore my latest daily problem solutions in Java! 💻✨
Given an array of non-negative integers, find the indices of the first subarray whose sum equals a …
Given an array of strings words
and a string pref
, return the number of strings in words
that …
Given an array of integers, find the number of triangles that can be formed using three distinct …
Given a sorted array of integers, find the number of pairs of distinct indices whose elements sum …
Given an array of integers and a target value, find a pair of elements (a, b) such that a <= b …
Given a string s
consisting of digits, return the number of unique substrings where each digit …
Given an array of integers and a target value, count the number of pairs in the array whose sum is …
Given a string s
, return the number of unique palindromic subsequences of length three. A …
Given a sorted array of integers and a target value, count the number of triplets (i, j, k)
such …
Given a 0-indexed integer array nums
of length n
, a valid split at index i
occurs if:
Given an array of integers and a number k, count the number of subarrays whose XOR of elements …
Given an unsorted array of integers, find the number of continuous subarrays whose sum is exactly …
Given a 0-indexed array of strings words
and a 2D array of integers queries
, each query queries[i] …
Given an array of strings, group all anagrams together. Anagrams are words that contain the same …
Given a string s
and a list of shift operations, perform the shifts on the string and return the …
Given an array of meeting time intervals, determine if a person can attend all meetings without any …
Given an array of meeting time intervals, where each interval consists of a start time and an end …
Given a string s
consisting of zeros and ones, the task is to split the string into two non-empty …
On a mission to master DSA, solve problems, and land a tech job! 🚀💻 Documenting my journey, sharing solutions, and staying accountable. Join me and let's grow together! 🌱✨