Month: February 2021

Longest Palindromic Substring

Given a string s, return the longest palindromic substring in s.

3 Sum Closest

Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the three integers. You may assume that each input would have exactly one solution.