<p>When a Little White meets another Little White:</p> <p>Little White A: (Surprised) !<br /> Little White B: ?<br /> Little White A: You Little White know &quot;SHDC&quot;? So unbelievable!<br /> Little White B: You…

2020年1月17日 0条评论 1091点热度 0人点赞 code 阅读全文

Uniform Resource Identifiers (or URIs) are strings like <i>http://icpc.baylor.edu/icpc/</i>, <i>mailto:foo@bar.org</i>, <i>ftp://127.0.0.1/pub/linux</i>, or even just <i>readme.txt</i> that are used to identify a…

2020年1月17日 0条评论 1459点热度 0人点赞 code 阅读全文

<p>The look and say sequence is defined as follows. Start with any string of digits as the first element in the sequence. Each subsequent element is defined from the previous one by &quot;verbally&quot; describing the previous element. For exampl…

2020年1月17日 0条评论 949点热度 3人点赞 code 阅读全文

<p>Given a string containing only 'A' - 'Z', we could encode it using the following method: 1. Each sub-string containing k same characters should be encoded to &quot;kX&quot; where &quot;X&quot; is the only character in this sub-string. …

2020年1月17日 0条评论 1035点热度 0人点赞 code 阅读全文

You may have heard of the book '2001 - A Space Odyssey' by Arthur C. Clarke, or the film of the same name by Stanley Kubrick. In it a spaceship is sent from Earth to Saturn. The crew is put into stasis for the long flight, only two men are awake, and the ship …

2020年1月17日 0条评论 1240点热度 0人点赞 code 阅读全文

<p>Given a positive integer n, find the positions of all 1's in its binary representation. The position of the least significant bit is 0. Example The positions of 1's in the binary representation of 13 are 0, 2, 3. Task Write a program which for each da…

2020年1月17日 0条评论 1267点热度 0人点赞 code 阅读全文