摘要:
Design a simplified version of Twitter where users can post tweets, follow/unfollow another user and is able to see the 10 most recent tweets in the u 阅读全文
posted @ 2017-10-24 11:41
daniel456
阅读(173)
评论(0)
推荐(0)
摘要:
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep copy 阅读全文
posted @ 2017-10-24 11:31
daniel456
阅读(126)
评论(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 @ 2017-10-24 11:24
daniel456
阅读(343)
评论(0)
推荐(0)
摘要:
Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index. According 阅读全文
posted @ 2017-10-24 11:18
daniel456
阅读(150)
评论(0)
推荐(0)
摘要:
You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time 阅读全文
posted @ 2017-10-24 11:14
daniel456
阅读(145)
评论(0)
推荐(0)
摘要:
Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled, where empty cells are filled wit 阅读全文
posted @ 2017-10-24 11:04
daniel456
阅读(96)
评论(0)
推荐(0)
摘要:
Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1. Example 1: Example 2: 阅读全文
posted @ 2017-10-24 10:52
daniel456
阅读(94)
评论(0)
推荐(0)
摘要:
There is a brick wall in front of you. The wall is rectangular and has several rows of bricks. The bricks have the same height but different width. Yo 阅读全文
posted @ 2017-10-24 10:49
daniel456
阅读(109)
评论(0)
推荐(0)
摘要:
Given four lists A, B, C, D of integer values, compute how many tuples (i, j, k, l) there are such that A[i] + B[j] + C[k] + D[l]is zero. To make prob 阅读全文
posted @ 2017-10-24 10:45
daniel456
阅读(95)
评论(0)
推荐(0)
摘要:
In English, we have a concept called root, which can be followed by some other words to form another longer word - let's call this word successor. For 阅读全文
posted @ 2017-10-24 10:39
daniel456
阅读(169)
评论(0)
推荐(0)

浙公网安备 33010602011771号