AB
  • home
  • about
  • portfolio
  • lab
  • LeetCode
  • contact

LeetCode

Page 2/2

Problem #5: Longest Palindromic Substring

medium

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

Solution:c#

#string#dynamic programming

Problem #3: Longest Substring Without Repeating Characters

medium

Given a string, find the length of the longest substring without repeating characters.

Solution:c#

#hash table#two pointers

Problem #2: Add Two Numbers

medium

You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.

Solution:c#

#Linked list#math

Problem #1: two sum

easy

Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not use the same element twice.

Solution:c#

#array#hash table

1

2

made with by Achyutha Bharadwaj. © 2019.