
leetCode
lovelling
这个作者很懒,什么都没留下…
展开
-
557. Reverse Words in a String III
557. Reverse Words in a String III代码链接Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order.Example 1:Input原创 2017-04-19 15:24:34 · 297 阅读 · 0 评论 -
339. Nested List Weight Sum
339. Nested List Weight Sum代码链接Given a nested list of integers, return the sum of all integers in the list weighted by their depth.Each element is either an integer, or a list – whose elements may also原创 2017-04-19 15:24:57 · 362 阅读 · 0 评论 -
461.Hamming Distance
461.Hamming Distance代码链接between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calculate the Hamming distance. Note:0 ≤ x, y < 231.原创 2017-04-19 15:25:15 · 240 阅读 · 0 评论 -
476. Number Complement
476. Number Complement代码链接Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation.Note:The given integer is guaranteed to fit wi原创 2017-04-19 15:25:31 · 259 阅读 · 0 评论 -
500. Keyboard Row
500. Keyboard Row代码链接Given a List of words, return the words that can be typed using letters of alphabet on only one row’s of American keyboard like the image below.American keyboard Example 1:Input:原创 2017-04-19 17:53:17 · 392 阅读 · 0 评论