上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 40 下一页
摘要: Unique Paths (M) 题目 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 do 阅读全文
posted @ 2020-07-14 01:13 墨云黑 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Same Tree (E) 题目 Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are s 阅读全文
posted @ 2020-07-14 00:55 墨云黑 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Reverse Bits (E) 题目 Reverse bits of a given 32 bits unsigned integer. Example 1: Input: 00000010100101000001111010011100 Output: 001110010111100000101 阅读全文
posted @ 2020-07-13 01:17 墨云黑 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Subsets (M) 题目 Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solution set must not contain duplicate 阅读全文
posted @ 2020-07-12 01:51 墨云黑 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Rotate List (M) 题目 Given a linked list, rotate the list to the right by k places, where k is non-negative. Example 1: Input: 1->2->3->4->5->NULL, k = 阅读全文
posted @ 2020-07-11 03:34 墨云黑 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Flatten a Multilevel Doubly Linked List (M) 题目 You are given a doubly linked list which in addition to the next and previous pointers, it could have a 阅读全文
posted @ 2020-07-11 01:51 墨云黑 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Maximum Width of Binary Tree (M) 题目 Given a binary tree, write a function to get the maximum width of the given tree. The width of a tree is the maxim 阅读全文
posted @ 2020-07-10 04:08 墨云黑 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Island Perimeter (E) 题目 You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are c 阅读全文
posted @ 2020-07-08 02:04 墨云黑 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Additive Number (M) 题目 Additive number is a string whose digits can form additive sequence. A valid additive sequence should contain at least three nu 阅读全文
posted @ 2020-07-07 04:58 墨云黑 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Permutation Sequence (M) 题目 The set [1,2,3,...,*n*] contains a total of n! unique permutations. By listing and labeling all of the permutations in ord 阅读全文
posted @ 2020-07-07 02:57 墨云黑 阅读(179) 评论(0) 推荐(0) 编辑
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 40 下一页