摘要: Given an n-ary tree, return the preorder traversal of its nodes' values. Nary-Tree input serialization is represented in their level order traversal, 阅读全文
posted @ 2020-02-04 11:03 Schwifty 阅读(124) 评论(0) 推荐(0)
摘要: Given a list of unique words, find all pairs of distinct indices (i, j) in the given list, so that the concatenation of the two words, i.e. words[i] + 阅读全文
posted @ 2020-02-04 08:22 Schwifty 阅读(121) 评论(0) 推荐(0)
摘要: Given two arrays, write a function to compute their intersection. Example 1: Input: nums1 = [1,2,2,1], nums2 = [2,2] Output: [2] Example 2: Input: num 阅读全文
posted @ 2020-02-04 05:43 Schwifty 阅读(92) 评论(0) 推荐(0)