5. Longest Palindromic Substring
Given a string s, return the longest palindromic substring in s. Example 1: Input: s = "babad" Output: "bab" […]
Given a string s, return the longest palindromic substring in s. Example 1: Input: s = "babad" Output: "bab" […]
Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted
Given a string s, find the length of the longest substring without duplicate characters. Example 1: Input: s =
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up
You have two soups, A and B, each starting with n mL. On every turn, one of the following four serving operations is chosen at random,
Fruits are available at some positions on an infinite x-axis. You are given a 2D integer array fruits where fruits[i] = [positioni, amounti] depicts amounti fruits
You are given two positive integers n and limit. Return the total number of ways to distribute n candies among 3 children such that no child gets more than limit candies. Example
Given two matrices mat1[][] and mat2[][] of size n x n, where the elements in each matrix are arranged in strictly ascending order. Specifically, each row is sorted
Given a matrix mat[][] of size n*n, where each row and column is sorted in non-decreasing order. Find the kth smallest element in the matrix. Examples:
You are given an n x n integer matrix board where the cells are labeled from 1 to n2 in a Boustrophedon style starting from the bottom left of the
You are given a binary tree, and the task is to determine whether it satisfies the properties of a max-heap.