自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

原创 Duplicate Emails

Duplicate Emails Write a SQL query to find all duplicate emails in a table named Person. Example ±—±--------+ | Id | Email | ±—±--------+ | 1 |...

2019-03-29 17:23:35

阅读数 19

评论数 0

原创 Find Common Characters

Find Common Characters Given an array A of strings made only from lowercase letters, return a list of all characters that show up in all strings wit...

2019-03-28 11:00:34

阅读数 46

评论数 0

原创 Intersection of Two Arrays II

Intersection of Two Arrays II Given two arrays, write a function to compute their intersection. Example Input: nums1 = [1,2,2,1], nums2 = [2,2] Ou...

2019-03-27 15:46:28

阅读数 32

评论数 0

原创 Word Pattern

Word Pattern Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection ...

2019-03-26 10:27:24

阅读数 18

评论数 0

原创 Isomorphic Strings

Isomorphic Strings Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to...

2019-03-25 16:25:37

阅读数 13

评论数 0

原创 Repeated DNA Sequences

Repeated DNA Sequences All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: “ACGAATTCCG”. When studying DNA, i...

2019-03-22 10:48:06

阅读数 27

评论数 0

原创 Number of Matching Subsequences

Number of Matching Subsequences Given string S and a dictionary of words words, find the number of words[i] that is a subsequence of S. Example In...

2019-03-21 11:16:42

阅读数 20

评论数 0

原创 Non-decreasing Array

Non-decreasing Array Given an array with n integers, your task is to check if it could become non-decreasing by modifying at most 1 element. We defi...

2019-03-20 21:35:03

阅读数 19

评论数 0

原创 Majority Element II

Majority Element II Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. Note: The algorithm should run in linea...

2019-03-19 11:32:52

阅读数 13

评论数 0

原创 Majority Element

Majority Element Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You ...

2019-03-18 09:29:40

阅读数 14

评论数 0

原创 Number Complement

Number Complement Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. ...

2019-03-15 10:12:00

阅读数 21

评论数 0

原创 Maximum Product of Word Lengths

Maximum Product of Word Lengths Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not s...

2019-03-14 13:22:36

阅读数 24

评论数 0

原创 Sort Colors

Sort Colors Given an array with n objects colored red, white or blue, sort them in-place so that objects of the same color are adjacent, with the co...

2019-03-13 10:18:00

阅读数 37

评论数 0

原创 Restore IP Addresses

Restore IP Addresses Given a string containing only digits, restore it by returning all possible valid IP address combinations. Example Input: “25...

2019-03-12 16:23:52

阅读数 56

评论数 0

原创 Subsets II

Subsets II Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set). Note: The solution set m...

2019-03-11 09:54:39

阅读数 7

评论数 0

原创 Letter Case Permutation

Letter Case Permutation Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string. Return ...

2019-03-08 09:48:14

阅读数 15

评论数 0

原创 Subsets

Subsets Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solution set must not contain duplicate subse...

2019-03-07 13:02:59

阅读数 9

评论数 0

原创 Convert a Number to Hexadecimal

Convert a Number to Hexadecimal Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, two’s complement method is ...

2019-03-06 22:18:42

阅读数 15

评论数 0

原创 Counting Bits

Counting Bits Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1’s in their binary repr...

2019-03-05 11:12:45

阅读数 17

评论数 0

原创 Integer Replacement

Integer Replacement Given a positive integer n and you can do operations as follow: If n is even, replace n with n/2. If n is odd, you can replace n...

2019-03-04 14:57:41

阅读数 10

评论数 0

原创 Bitwise AND of Numbers Range

Bitwise AND of Numbers Range Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in thi...

2019-03-01 14:45:18

阅读数 23

评论数 0

提示
确定要删除当前文章?
取消 删除