2018年4月22日

LeetCode第[20]题(Java):Valid Parentheses

摘要: 题目:有效的括号序列 难度:Easy 题目内容: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An inp 阅读全文

posted @ 2018-04-22 18:40 清风吹斜阳 阅读(1266) 评论(0) 推荐(0) 编辑

LeetCode第[19]题(Java):Remove Nth Node From End of List(删除链表的倒数第N个节点)

摘要: 题目:删除链表的倒数第N个节点 难度:Medium 题目内容: Given a linked list, remove the n-th node from the end of list and return its head. 翻译:给定一个链表,删除倒数第n个节点并返回其头部。 Example 阅读全文

posted @ 2018-04-22 16:35 清风吹斜阳 阅读(234) 评论(0) 推荐(0) 编辑

LeetCode第[17]题(Java):Letter Combinations of a Phone Number

摘要: 题目:最长公共前缀 难度:EASY 题目内容: Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. 阅读全文

posted @ 2018-04-22 12:07 清风吹斜阳 阅读(357) 评论(0) 推荐(0) 编辑

导航