上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 40 下一页
摘要: Score of Parentheses (M) 题目 Given a balanced parentheses string S, compute the score of the string based on the following rule: () has score 1 AB has 阅读全文
posted @ 2021-02-24 17:50 墨云黑 阅读(46) 评论(0) 推荐(0) 编辑
摘要: Search a 2D Matrix II (M) 题目 Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Inte 阅读全文
posted @ 2021-02-23 16:24 墨云黑 阅读(38) 评论(0) 推荐(0) 编辑
摘要: Longest Word in Dictionary through Deleting (M) 题目 Given a string and a string dictionary, find the longest string in the dictionary that can be forme 阅读全文
posted @ 2021-02-22 20:16 墨云黑 阅读(48) 评论(0) 推荐(0) 编辑
摘要: Broken Calculator (M) 题目 On a broken calculator that has a number showing on its display, we can perform two operations: Double: Multiply the number o 阅读全文
posted @ 2021-02-21 22:40 墨云黑 阅读(43) 评论(0) 推荐(0) 编辑
摘要: Minimum Remove to Make Valid Parentheses (M) 题目 Given a string s of '(' , ')' and lowercase English characters. Your task is to remove the minimum num 阅读全文
posted @ 2021-02-19 17:35 墨云黑 阅读(41) 评论(0) 推荐(0) 编辑
摘要: Arithmetic Slices (M) 题目 A sequence of numbers is called arithmetic if it consists of at least three elements and if the difference between any two co 阅读全文
posted @ 2021-02-18 17:45 墨云黑 阅读(46) 评论(0) 推荐(0) 编辑
摘要: Letter Case Permutation (M) 题目 Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string. Ret 阅读全文
posted @ 2021-02-16 20:21 墨云黑 阅读(54) 评论(0) 推荐(0) 编辑
摘要: The K Weakest Rows in a Matrix (E) 题目 Given a m * n matrix mat of ones (representing soldiers) and zeros (representing civilians), return the indexes 阅读全文
posted @ 2021-02-15 19:34 墨云黑 阅读(40) 评论(0) 推荐(0) 编辑
摘要: Is Graph Bipartite? (M) 题目 Given an undirected graph, return true if and only if it is bipartite. Recall that a graph is bipartite if we can split its 阅读全文
posted @ 2021-02-14 21:27 墨云黑 阅读(104) 评论(0) 推荐(0) 编辑
摘要: Shortest Path in Binary Matrix (M) 题目 In an N by N square grid, each cell is either empty (0) or blocked (1). A clear path from top-left to bottom-rig 阅读全文
posted @ 2021-02-13 16:32 墨云黑 阅读(91) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 40 下一页