摘要: Given the root of a Binary Search Tree and a target number k, return true if there exist two elements in the BST such that their sum is equal to the g 阅读全文
posted @ 2020-12-27 03:43 北叶青藤 阅读(94) 评论(0) 推荐(0)
摘要: Given two strings s1 and s2, write a function to return true if s2 contains the permutation of s1. In other words, one of the first string's permutati 阅读全文
posted @ 2020-12-27 03:24 北叶青藤 阅读(78) 评论(0) 推荐(0)
摘要: Given a directed acyclic graph (DAG) of n nodes labeled from 0 to n - 1, find all possible paths from node 0 to node n - 1, and return them in any ord 阅读全文
posted @ 2020-12-27 02:45 北叶青藤 阅读(104) 评论(0) 推荐(0)
摘要: Given an array of positive integers arr (not necessarily distinct), return the lexicographically largest permutation that is smaller than arr, that ca 阅读全文
posted @ 2020-12-27 01:47 北叶青藤 阅读(130) 评论(0) 推荐(0)
摘要: You are given some lists of regions where the first region of each list includes all other regions in that list. Naturally, if a region X contains ano 阅读全文
posted @ 2020-12-27 00:54 北叶青藤 阅读(123) 评论(0) 推荐(0)