摘要: Implement a basic calculator to evaluate a simple expression string. The expression string may contain open ( and closing parentheses ), the plus + or 阅读全文
posted @ 2020-07-25 12:11 Schwifty 阅读(93) 评论(0) 推荐(0)
摘要: Given two words (beginWord and endWord), and a dictionary's word list, find all shortest transformation sequence(s) from beginWord to endWord, such th 阅读全文
posted @ 2020-07-25 10:17 Schwifty 阅读(116) 评论(0) 推荐(0)
摘要: Given an integer n, generate all structurally unique BST's (binary search trees) that store values 1 ... n. Example: Input: 3 Output: [ [1,null,3,2], 阅读全文
posted @ 2020-07-25 08:29 Schwifty 阅读(111) 评论(0) 推荐(0)
摘要: Given a directed, acyclic graph of N nodes. Find all possible paths from node 0 to node N-1, and return them in any order. The graph is given as follo 阅读全文
posted @ 2020-07-25 01:19 Schwifty 阅读(148) 评论(0) 推荐(0)