摘要:
Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". 反转字符串,逼我不用 reverse 阅读全文
posted @ 2017-07-27 22:02
Beserious
阅读(87)
评论(0)
推荐(0)
摘要:
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. E 阅读全文
posted @ 2017-07-27 21:40
Beserious
阅读(167)
评论(0)
推荐(0)
摘要:
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. Examp 阅读全文
posted @ 2017-07-27 21:21
Beserious
阅读(166)
评论(0)
推荐(0)
摘要:
Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: Example 1: Exa 阅读全文
posted @ 2017-07-27 20:15
Beserious
阅读(140)
评论(0)
推荐(0)
摘要:
Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of 阅读全文
posted @ 2017-07-27 19:45
Beserious
阅读(122)
评论(0)
推荐(0)
摘要:
Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are n 阅读全文
posted @ 2017-07-27 17:04
Beserious
阅读(151)
评论(0)
推荐(0)
摘要:
The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calcul 阅读全文
posted @ 2017-07-27 12:45
Beserious
阅读(191)
评论(0)
推荐(0)
浙公网安备 33010602011771号