上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 40 下一页
摘要: Compare Version Numbers (M) 题目 Compare two version numbers version1 and version2. If version1 > version2 return 1; if version1 < version2 return -1;ot 阅读全文
posted @ 2020-09-09 20:40 墨云黑 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Sum of Root To Leaf Binary Numbers (E) 题目 Given a binary tree, each node has value 0 or 1. Each root-to-leaf path represents a binary number starting 阅读全文
posted @ 2020-09-08 22:22 墨云黑 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Image Overlap (M) 题目 Two images A and B are given, represented as binary, square matrices of the same size. (A binary matrix has only 0s and 1s as val 阅读全文
posted @ 2020-09-07 13:34 墨云黑 阅读(196) 评论(0) 推荐(0) 编辑
摘要: All Elements in Two Binary Search Trees (M) 题目 Given two binary search trees root1 and root2. Return a list containing all the integers from both tree 阅读全文
posted @ 2020-09-06 09:59 墨云黑 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Partition Labels (M) 题目 A string S of lowercase English letters is given. We want to partition this string into as many parts as possible so that each 阅读全文
posted @ 2020-09-05 10:04 墨云黑 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Repeated Substring Pattern (E) 题目 Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of 阅读全文
posted @ 2020-09-03 20:16 墨云黑 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Contains Duplicate III (M) 题目 Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute 阅读全文
posted @ 2020-09-02 23:06 墨云黑 阅读(161) 评论(0) 推荐(0) 编辑
摘要: Largest Time for Given Digits (E) 题目 Given an array of 4 digits, return the largest 24 hour time that can be made. The smallest 24 hour time is 00:00, 阅读全文
posted @ 2020-09-02 09:26 墨云黑 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Delete Node in a BST (M) 题目 Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node refere 阅读全文
posted @ 2020-08-31 20:01 墨云黑 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Largest Component Size by Common Factor (H) 题目 Given a non-empty array of unique positive integers A, consider the following graph: There are A.length 阅读全文
posted @ 2020-08-31 10:55 墨云黑 阅读(137) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 40 下一页