摘要:
You are given a string representing an attendance record for a student. The record only contains the following three characters: 'A' : Absent. 'L' : L 阅读全文
posted @ 2017-07-18 22:11
immjc
阅读(129)
评论(0)
推荐(0)
摘要:
Given a string and an integer k, you need to reverse the first k characters for every 2k characters counting from the start of the string. If there ar 阅读全文
posted @ 2017-07-18 21:40
immjc
阅读(126)
评论(0)
推荐(0)
摘要:
Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. For example,Given nums = [0, 1, 阅读全文
posted @ 2017-07-18 15:25
immjc
阅读(139)
评论(0)
推荐(0)
摘要:
Given two arrays, write a function to compute their intersection. Example: Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2, 2]. Note: Each eleme 阅读全文
posted @ 2017-07-18 15:03
immjc
阅读(149)
评论(0)
推荐(0)
摘要:
Given an integer, return its base 7 string representation. Example 1: Input: 100 Output: "202" Example 2: Input: -7 Output: "-10" Note: The input will 阅读全文
posted @ 2017-07-18 14:46
immjc
阅读(169)
评论(0)
推荐(0)
摘要:
Given n points in the plane that are all pairwise distinct, a "boomerang" is a tuple of points (i, j, k) such that the distance between iand j equals 阅读全文
posted @ 2017-07-18 14:17
immjc
阅读(162)
评论(0)
推荐(0)

浙公网安备 33010602011771号