Jan 19, 2026
Given a string s which consists of lowercase or uppercase letters, return the length of the longest palindrome that can be built with those letters.
leetcodeeasystringhash-tablegreedy
Jan 18, 2026
A trie (pronounced as “try”) or prefix tree is a tree data structure used to efficiently store and retrieve keys in a dataset of strings. There are various applications of...
leetcodemediumstringdesigntrie
Jan 18, 2026
A k-booking happens when k events have some non-empty intersection (i.e., there is some time that is common to all k events).
leetcodehardarraybinary-searchdesignsegment-treeordered-set
Jan 18, 2026
You are given a string s. The score of a string is defined as the sum of the absolute difference between the ASCII values of adjacent characters.
leetcodeeasystringarray
Jan 17, 2026
You are implementing a program to use as your calendar. We can add a new event if adding the event will not cause a double booking.
leetcodemediumarraybinary-searchdesignordered-set
Jan 17, 2026
You are given an integer array nums and you have to return a new array counts. The array counts has the property where counts[i] is the number of smaller elements...
leetcodehardarraybinary-searchdivide-and-conquerbinary-indexed-treesegment-treemerge-sort
Jan 16, 2026
You are given two integer arrays fruits and baskets.
leetcodemediumarraygreedysegment-tree
Jan 16, 2026
Given an integer array nums, handle multiple queries of the following types:
leetcodemediumarraysegment-treebinary-indexed-tree
Jan 16, 2026
You are given an empty 2D binary grid grid of size m x n. The grid represents a map where 0’s represent water and 1’s represent land. Initially, all the...
leetcodehardarrayunion-findgraph
Jan 15, 2026
There is a directed graph of n nodes with each node labeled from 0 to n - 1. The graph is represented by a 0-indexed 2D integer array graph where...
leetcodemediumgraphdfscycle-detection