随笔分类 -  Leetcode 题目

摘要:题目: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 思路: 阅读全文
posted @ 2015-12-17 19:50 JSRGFJZ6 阅读(151) 评论(0) 推荐(0)
摘要:题目: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in 阅读全文
posted @ 2015-12-15 20:52 JSRGFJZ6 阅读(123) 评论(0) 推荐(0)
摘要:题目: Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled, where empty cells are filled 阅读全文
posted @ 2015-12-15 20:46 JSRGFJZ6 阅读(116) 评论(0) 推荐(0)
摘要:题目: Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.If the number of nodes is not a multiple of k the 阅读全文
posted @ 2015-12-09 09:26 JSRGFJZ6 阅读(145) 评论(0) 推荐(0)
摘要:题目:Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space 阅读全文
posted @ 2015-12-06 22:23 JSRGFJZ6 阅读(127) 评论(0) 推荐(0)
摘要:题目:Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two en 阅读全文
posted @ 2015-12-06 22:22 JSRGFJZ6 阅读(117) 评论(0) 推荐(0)
摘要:题目: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 sing 阅读全文
posted @ 2015-12-05 23:51 JSRGFJZ6 阅读(122) 评论(0) 推荐(0)
摘要:题目:A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any 阅读全文
posted @ 2015-10-16 20:54 JSRGFJZ6 阅读(106) 评论(0) 推荐(0)
摘要:题目:Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. 1 / \ 2 3 Return the sum = 12 + 13 = 25. 思路:递 阅读全文
posted @ 2015-09-26 19:42 JSRGFJZ6 阅读(130) 评论(0) 推荐(0)