摘要:
题目 Imagine you are building a compiler. Before running any code, the compiler must check that the parentheses in the program are balanced. Every openi
阅读全文
posted @ 2019-10-08 02:40
Optimus_Prime
阅读(196)
推荐(0)
摘要:
题目 A palindrome is a sequence of characters that reads the same backwards and forwards. Given a string, s, find the longest palindromic substring in s
阅读全文
posted @ 2019-10-08 02:34
Optimus_Prime
阅读(245)
推荐(0)
摘要:
题目 Given a string, find the length of the longest substring without repeating characters. 分析 任意2个重复的字符不可能同时存在于一个合法的子串中。因此,可以从左到右扫描字符,用一个字典记录出现过的字符。 一旦
阅读全文
posted @ 2019-10-08 02:24
Optimus_Prime
阅读(410)
推荐(0)
摘要:
问题描述 You are given two linked lists representing two non negative integers. The digits are stored in reverse order and each of their nodes contain a s
阅读全文
posted @ 2019-10-08 02:18
Optimus_Prime
阅读(192)
推荐(0)