摘要: Description: Count the number of prime numbers less than a non-negative number, n click to show more hints. References: How Many Primes Are There? Sie 阅读全文
posted @ 2018-03-12 15:18 轻风舞动 阅读(1423) 评论(0) 推荐(0) 编辑
摘要: A binary watch has 4 LEDs on the top which represent the hours (0-11), and the 6 LEDs on the bottom represent the minutes (0-59). Each LED represents 阅读全文
posted @ 2018-03-12 15:05 轻风舞动 阅读(651) 评论(0) 推荐(0) 编辑
摘要: Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 1. Example 1: Example 2: Example 3 阅读全文
posted @ 2018-03-12 14:06 轻风舞动 阅读(570) 评论(0) 推荐(0) 编辑
摘要: What happens when you type an URL in the browser and press enter? 1. You type maps.google.com into the address bar of your browser. 2. The browser che 阅读全文
posted @ 2018-03-12 13:58 轻风舞动 阅读(367) 评论(0) 推荐(0) 编辑
摘要: HTTP Status Codes 1xx Informational 100 Continue 101 Switching Protocols 102 Processing (WebDAV) 2xx Success 200 OK 201 Created 202 Accepted 203 Non-A 阅读全文
posted @ 2018-03-12 13:53 轻风舞动 阅读(417) 评论(0) 推荐(0) 编辑
摘要: Binary Search: Search a sorted array by repeatedly dividing the search interval in half. Begin with an interval covering the whole array. If the value 阅读全文
posted @ 2018-03-12 13:36 轻风舞动 阅读(162) 评论(0) 推荐(0) 编辑
摘要: What is the difference between POST and GET HTTP requests? GET and POST are two different types of HTTP requests. According to Wikipedia: GET requests 阅读全文
posted @ 2018-03-12 13:31 轻风舞动 阅读(221) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2018-03-12 10:08 轻风舞动 阅读(30) 评论(0) 推荐(0) 编辑
摘要: Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Foll 阅读全文
posted @ 2018-03-12 09:15 轻风舞动 阅读(538) 评论(0) 推荐(0) 编辑
摘要: Given a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks.Tasks could 阅读全文
posted @ 2018-03-12 05:37 轻风舞动 阅读(716) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty string str and an integer k, rearrange the string such that the same characters are at least distance k from each other. All input s 阅读全文
posted @ 2018-03-12 05:29 轻风舞动 阅读(4161) 评论(0) 推荐(0) 编辑