Leetcode Solutions Java

Leetcode 15 3 Sum

Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of…

2 years ago

Leetcode 5 Longest Palindromic Substring Java Solution

Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1:…

2 years ago

Leetcode 3 Longest Substring Without Repeating Characters

Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer…

2 years ago

Leetcode 1 Two Sum Java Solution

Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may…

2 years ago

This website uses cookies.