随笔分类 - 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. 思路:
阅读全文
摘要:题目: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in
阅读全文
摘要:题目: Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled, where empty cells are filled
阅读全文
摘要:题目: 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
阅读全文
摘要:题目: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
阅读全文
摘要:题目: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
阅读全文
摘要:题目: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
阅读全文
摘要:题目: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
阅读全文
摘要:题目: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. 思路:递
阅读全文

浙公网安备 33010602011771号