摘要:
Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 click to show spoilers. Have you thought about this? Here a 阅读全文
posted @ 2017-02-12 20:44
amazingzoe
阅读(123)
评论(0)
推荐(0)
摘要:
You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality c 阅读全文
posted @ 2017-02-12 20:09
amazingzoe
阅读(100)
评论(0)
推荐(0)
摘要:
Winter is coming! Your first job during the contest is to design a standard heater with fixed warm radius to warm all the houses. Now, you are given p 阅读全文
posted @ 2017-02-12 19:10
amazingzoe
阅读(299)
评论(0)
推荐(0)
摘要:
Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters. Please note that the string 阅读全文
posted @ 2017-02-12 18:04
amazingzoe
阅读(166)
评论(0)
推荐(0)
摘要:
Given a positive integer num, write a function which returns True if num is a perfect square else False. Note: Do not use any built-in library functio 阅读全文
posted @ 2017-02-12 17:49
amazingzoe
阅读(125)
评论(0)
推荐(0)
摘要:
There are a row of n houses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a certai 阅读全文
posted @ 2017-02-12 17:19
amazingzoe
阅读(177)
评论(0)
推荐(0)
摘要:
For a web developer, it is very important to know how to design a web page's size. So, given a specific rectangular web page’s area, your job by now i 阅读全文
posted @ 2017-02-12 17:16
amazingzoe
阅读(328)
评论(0)
推荐(0)
摘要:
Given scores of N athletes, find their relative ranks and the people with the top three highest scores, who will be awarded medals: "Gold Medal", "Sil 阅读全文
posted @ 2017-02-12 17:15
amazingzoe
阅读(495)
评论(0)
推荐(0)
摘要:
Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Note: The input array will only contain 0 and 1. The length 阅读全文
posted @ 2017-02-12 17:14
amazingzoe
阅读(142)
评论(0)
推荐(0)
摘要:
You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/ve 阅读全文
posted @ 2017-02-12 17:13
amazingzoe
阅读(120)
评论(0)
推荐(0)
摘要:
Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: The given inte 阅读全文
posted @ 2017-02-12 17:09
amazingzoe
阅读(207)
评论(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-02-12 17:08
amazingzoe
阅读(512)
评论(0)
推荐(0)
浙公网安备 33010602011771号