LeetCode Solutions

#3392 Easy

Count Subarrays of Length Three With Condition

Count subarrays where sum of first and third elements equals half of the second element.

#1295 Easy

Find Numbers with Even Number of Digits

Count numbers which has even number of digits.

#2799 Medium

Count Complete Subarrays in an Array

Count how many subarrays contain all distinct elements present in the original array.

#1829 Medium

Maximum XOR for Each Query

Find the maximum XOR result for each query on an array.

#2962 Medium

Count Subarrays Where Max Element Appears at Least K Times

Count all subarrays where the maximum element appears at least k times

#2302 Hard

Count Subarrays With Score Less Than K

Count all the subarrays where product of sum and length is less than k