上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 68 下一页
摘要: 题目如下: Consider a directed graph, with nodes labelled 0, 1, ..., n-1. In this graph, each edge is either red or blue, and there could be self-edges or 阅读全文
posted @ 2019-08-05 11:44 seyjs 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given two arrays of integers with equal lengths, return the maximum value of: |arr1[i] - arr1[j]| + |arr2[i] - arr2[j]| + |i - j| where the maxi 阅读全文
posted @ 2019-08-05 11:39 seyjs 阅读(744) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given two arrays arr1 and arr2, the elements of arr2 are distinct, and all elements in arr2 are also in arr1. Sort the elements of arr1 such tha 阅读全文
posted @ 2019-07-23 15:25 seyjs 阅读(653) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given a rooted binary tree, return the lowest common ancestor of its deepest leaves. Recall that: The node of a binary tree is a leaf if and onl 阅读全文
posted @ 2019-07-23 15:20 seyjs 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given a list of dominoes, dominoes[i] = [a, b] is equivalent to dominoes[j] = [c, d] if and only if either (a==c and b==d), or (a==d and b==c) - 阅读全文
posted @ 2019-07-23 15:08 seyjs 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 题目如下: There are n flights, and they are labeled from 1 to n. We have a list of flight bookings. The i-th booking bookings[i] = [i, j, k] means that we 阅读全文
posted @ 2019-07-11 14:53 seyjs 阅读(522) 评论(0) 推荐(0) 编辑
摘要: 题目如下: A string is a valid parentheses string (denoted VPS) if and only if it consists of "(" and ")" characters only, and: It is the empty string, or 阅读全文
posted @ 2019-07-08 15:57 seyjs 阅读(584) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given the root of a binary tree, each node in the tree has a distinct value. After deleting all nodes with a value in to_delete, we are left wit 阅读全文
posted @ 2019-07-08 15:46 seyjs 阅读(750) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given a valid (IPv4) IP address, return a defanged version of that IP address. A defanged IP address replaces every period "."with "[.]". Exampl 阅读全文
posted @ 2019-07-08 15:38 seyjs 阅读(1022) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Return the result of evaluating a given boolean expression, represented as a string. An expression can either be: "t", evaluating to True; "f", 阅读全文
posted @ 2019-07-05 17:45 seyjs 阅读(493) 评论(0) 推荐(0) 编辑
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 68 下一页