上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 40 下一页
摘要: Vertical Order Traversal of a Binary Tree (M) 题目 Given a binary tree, return the vertical order traversal of its nodes values. For each node at positi 阅读全文
posted @ 2020-08-08 11:38 墨云黑 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Find All Duplicates in an Array (M) 题目 Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once 阅读全文
posted @ 2020-08-07 09:23 墨云黑 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Add and Search Word - Data structure design (M) 题目 Design a data structure that supports the following two operations: void addWord(word) bool search( 阅读全文
posted @ 2020-08-06 14:23 墨云黑 阅读(162) 评论(0) 推荐(0) 编辑
摘要: Implement Trie (Prefix Tree) (M) 题目 Implement a trie with insert, search, and startsWith methods. Example: Trie trie = new Trie(); trie.insert("apple" 阅读全文
posted @ 2020-08-06 13:58 墨云黑 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Valid Palindrome (E) 题目 Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the pu 阅读全文
posted @ 2020-08-03 21:32 墨云黑 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Design HashSet (E) 题目 Design a HashSet without using any built-in hash table libraries. To be specific, your design should include these functions: ad 阅读全文
posted @ 2020-08-03 07:47 墨云黑 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Detect Capital (E) 题目 Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word t 阅读全文
posted @ 2020-08-02 09:29 墨云黑 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Climbing Stairs (E) 题目 You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many d 阅读全文
posted @ 2020-08-01 09:57 墨云黑 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Word Break II (H) 题目 Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentenc 阅读全文
posted @ 2020-07-31 10:41 墨云黑 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Best Time to Buy and Sell Stock with Cooldown (M) 题目 Say you have an array for which the ith element is the price of a given stock on day i. Design an 阅读全文
posted @ 2020-07-30 10:27 墨云黑 阅读(161) 评论(0) 推荐(0) 编辑
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 40 下一页