摘要: 题目如下: 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) 编辑