上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 76 下一页
摘要: Design a simplified version of Twitter where users can post tweets, follow/unfollow another user and is able to see the 10 most recent tweets in the u 阅读全文
posted @ 2020-07-31 11:01 Schwifty 阅读(178) 评论(0) 推荐(0)
摘要: You have a number of envelopes with widths and heights given as a pair of integers (w, h). One envelope can fit into another if and only if both the w 阅读全文
posted @ 2020-07-31 08:42 Schwifty 阅读(139) 评论(0) 推荐(0)
摘要: In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data. 阅读全文
posted @ 2020-07-29 13:12 Schwifty 阅读(111) 评论(0) 推荐(0)
摘要: Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list of favorite restaurants represented by strings. You need to h 阅读全文
posted @ 2020-07-29 12:53 Schwifty 阅读(134) 评论(0) 推荐(0)
摘要: Given a list of words (without duplicates), please write a program that returns all concatenated words in the given list of words. A concatenated word 阅读全文
posted @ 2020-07-29 11:43 Schwifty 阅读(144) 评论(0) 推荐(0)
摘要: Given two strings s1, s2, find the lowest ASCII sum of deleted characters to make two strings equal. Example 1: Input: s1 = "sea", s2 = "eat" Output: 阅读全文
posted @ 2020-07-28 11:53 Schwifty 阅读(129) 评论(0) 推荐(0)
摘要: Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one cha 阅读全文
posted @ 2020-07-28 11:11 Schwifty 阅读(92) 评论(0) 推荐(0)
摘要: Given two strings str1 and str2, return the shortest string that has both str1 and str2 as subsequences. If multiple answers exist, you may return any 阅读全文
posted @ 2020-07-28 09:37 Schwifty 阅读(218) 评论(0) 推荐(0)
摘要: You are given a binary tree in which each node contains an integer value. Find the number of paths that sum to a given value. The path does not need t 阅读全文
posted @ 2020-07-28 03:51 Schwifty 阅读(113) 评论(0) 推荐(0)
摘要: Given a string s and an integer array indices of the same length. The string s will be shuffled such that the character at the ith position moves to i 阅读全文
posted @ 2020-07-27 10:50 Schwifty 阅读(253) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 76 下一页