摘要:
Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by its bottom left corner and top right corner as s 阅读全文
posted @ 2019-10-19 23:01
Schwifty
阅读(137)
评论(0)
推荐(0)
摘要:
Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. Example 1: Example 2: Note:Your 阅读全文
posted @ 2019-10-19 07:41
Schwifty
阅读(136)
评论(0)
推荐(0)
摘要:
Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example 1: Example 2: Input: 5 Output: false class Solution { 阅读全文
posted @ 2019-10-19 07:31
Schwifty
阅读(114)
评论(0)
推荐(0)
摘要:
Given an integer, write a function to determine if it is a power of three. Example 1: Example 2: Example 3: Example 4: Follow up:Could you do it witho 阅读全文
posted @ 2019-10-19 07:28
Schwifty
阅读(106)
评论(0)
推荐(0)
摘要:
Given an integer, write a function to determine if it is a power of two. Example 1: Example 2: Example 3: 真就一行啊,举例:8 == 1000, 8 - 1 = 7 == 0111,做与必定为0 阅读全文
posted @ 2019-10-19 07:12
Schwifty
阅读(183)
评论(0)
推荐(0)
摘要:
Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements 阅读全文
posted @ 2019-10-19 06:33
Schwifty
阅读(120)
评论(0)
推荐(0)
摘要:
All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes useful to 阅读全文
posted @ 2019-10-19 04:15
Schwifty
阅读(110)
评论(0)
推荐(0)
摘要:
Given a reference of a node in a connected undirected graph, return a deep copy (clone) of the graph. Each node in the graph contains a val (int) and 阅读全文
posted @ 2019-10-19 03:00
Schwifty
阅读(142)
评论(0)
推荐(0)

浙公网安备 33010602011771号