上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页
摘要: 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 @ 2017-12-26 02:13 jxr041100 阅读(111) 评论(0) 推荐(0) 编辑
摘要: We define a harmonious array is an array where the difference between its maximum value and its minimum value is exactly 1. Now, given an integer arra 阅读全文
posted @ 2017-12-25 05:17 jxr041100 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Given two integers n and k, you need to construct a list which contains n different positive integers ranging from 1 to n and obeys the following requ 阅读全文
posted @ 2017-12-24 05:30 jxr041100 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Nearly every one have used the Multiplication Table. But could you find out the k-th smallest number quickly from the multiplication table? Given the 阅读全文
posted @ 2017-12-24 05:29 jxr041100 阅读(201) 评论(0) 推荐(0) 编辑
摘要: A zero-indexed array A of length N contains all integers from 0 to N-1. Find and return the longest length of set S, where S[i] = {A[i], A[A[i]], A[A[ 阅读全文
posted @ 2017-12-23 11:02 jxr041100 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Given an array consists of non-negative integers, your task is to count the number of triplets chosen from the array that can make triangles if we tak 阅读全文
posted @ 2017-12-22 15:39 jxr041100 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Given a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks.Tasks could 阅读全文
posted @ 2017-12-22 13:39 jxr041100 阅读(118) 评论(0) 推荐(0) 编辑
摘要: There are n different online courses numbered from 1 to n. Each course has some duration(course length) t and closed on dth day. A course should be ta 阅读全文
posted @ 2017-12-22 03:50 jxr041100 阅读(154) 评论(0) 推荐(0) 编辑
摘要: There are n different online courses numbered from 1 to n. Each course has some duration(course length) t and closed on dth day. A course should be ta 阅读全文
posted @ 2017-12-22 03:50 jxr041100 阅读(136) 评论(0) 推荐(0) 编辑
摘要: A message containing letters from A-Z is being encoded to numbers using the following mapping way: Beyond that, now the encoded string can also contai 阅读全文
posted @ 2017-12-16 15:37 jxr041100 阅读(147) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页