摘要:
Problem:The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed... 阅读全文
摘要:
Problem:Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique lo... 阅读全文
摘要:
Problem:You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a... 阅读全文
摘要:
Problem:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating le... 阅读全文
摘要:
Problem:There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sh... 阅读全文
摘要:
Problem:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of th... 阅读全文