01 2020 档案

摘要:In the computer world, use restricted resource you have to generate maximum benefit is what we always want to pursue. For now, suppose you are a domin 阅读全文
posted @ 2020-01-31 10:32 Sheanne 阅读(192) 评论(0) 推荐(0)
摘要:Remember the story of Little Match Girl? By now, you know exactly what matchsticks the little match girl has, please find out a way you can make one s 阅读全文
posted @ 2020-01-31 05:57 Sheanne 阅读(247) 评论(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-01-31 04:13 Sheanne 阅读(193) 评论(1) 推荐(0)
摘要:Given a function rand7 which generates a uniform random integer in the range 1 to 7, write a function rand10 which generates a uniform random integer 阅读全文
posted @ 2020-01-31 00:25 Sheanne 阅读(185) 评论(0) 推荐(0)
摘要:Given a list of points that form a polygon when joined sequentially, find if this polygon is convex (Convex polygon definition). 阅读全文
posted @ 2020-01-30 23:38 Sheanne 阅读(240) 评论(0) 推荐(0)
摘要:Consider the string s to be the infinite wraparound string of "abcdefghijklmnopqrstuvwxyz", so s will look like this: "...zabcdefghijklmnopqrstuvwxyza 阅读全文
posted @ 2020-01-30 04:22 Sheanne 阅读(162) 评论(0) 推荐(0)
摘要:Define S = [s,n] as the string S which consists of n connected strings s. For example, ["abc", 3] ="abcabcabc". On the other hand, we define that stri 阅读全文
posted @ 2020-01-30 03:29 Sheanne 阅读(144) 评论(0) 推荐(0)
摘要:A group of friends went on holiday and sometimes lent each other money. For example, Alice paid for Bill's lunch for $10. Then later Chris gave Alice 阅读全文
posted @ 2020-01-29 11:59 Sheanne 阅读(391) 评论(0) 推荐(0)
摘要:In the "100 game," two players take turns adding, to a running total, any integer from 1..10. The player who first causes the running total to reach o 阅读全文
posted @ 2020-01-29 03:40 Sheanne 阅读(225) 评论(0) 推荐(0)