上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页
摘要: 请实现一个函数,将一个字符串中的每个空格替换成“%20”。例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy。 https://www.nowcoder.com/questionTerminal/4060ac7e3e404ad1a894ef3e1765 阅读全文
posted @ 2020-01-28 19:51 hyx1 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted i 阅读全文
posted @ 2020-01-28 16:30 hyx1 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements that appear twi 阅读全文
posted @ 2020-01-24 11:05 hyx1 阅读(112) 评论(0) 推荐(0) 编辑
摘要: There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sh 阅读全文
posted @ 2020-01-23 22:04 hyx1 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer 阅读全文
posted @ 2020-01-17 14:56 hyx1 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Milking TimeTime Limit:1000MSMemory Limit:65536KTotal Submissions:6599Accepted:2764DescriptionBessie is such a hard-working cow. In fact, she is so fo... 阅读全文
posted @ 2016-01-11 18:38 hyx1 阅读(419) 评论(0) 推荐(0) 编辑
摘要: C. Harmony Analysistime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe semester is already endin... 阅读全文
posted @ 2016-01-10 10:45 hyx1 阅读(239) 评论(0) 推荐(0) 编辑
摘要: Apple CatchingTime Limit:1000MSMemory Limit:65536KTotal Submissions:9856Accepted:4786DescriptionIt is a little known fact that cows love apples. Farme... 阅读全文
posted @ 2016-01-05 17:44 hyx1 阅读(223) 评论(0) 推荐(0) 编辑
摘要: SumsetsTime Limit:2000MSMemory Limit:200000KTotal Submissions:15105Accepted:6017DescriptionFarmer John commanded his cows to search for different sets... 阅读全文
posted @ 2016-01-05 17:02 hyx1 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 3231 - Fair ShareAsia - Seoul - 2004/2005You are given N processors and M jobs to be processed. Two processors are specified to each job. To processth... 阅读全文
posted @ 2014-08-18 13:50 hyx1 阅读(185) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页