aixh
aixh
全部文章
LeetCode
Java(117)
Linux(1)
MongoDB(1)
MySQL(2)
计算机安全与网络编程(1)
归档
标签
去牛客网
登录
/
注册
aixh的博客
全部文章
/ LeetCode
(共33篇)
565. Array Nesting
A zero-indexed array A of length N contains all integers from 0 to N-1. Find and return the longest length of set S, where S[i] = {A[i], A[A[i]], A[A[...
2019-05-27
0
520
457. Circular Array Loop
You are given a circular array nums of positive and negative integers. If a number k at an index is positive, then move forward k steps. Conversely, i...
LeetCode
2019-05-09
0
581
442. Find All Duplicates in an Array
Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements that appear tw...
2019-05-06
0
576
289. Game of Life
According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician ...
2019-05-06
0
617
215. Kth Largest Element in an Array
Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. Example...
2019-04-30
0
613
214. Shortest Palindrome
待续。。。 找时间攻克KMP算法。。。
2019-04-29
0
480
212. Word Search II
Given a 2D board and a list of words from the dictionary, find all words in the board. Each word must be constructed from letters of sequentially adj...
2019-04-29
0
593
211. Add and Search Word - Data structure design
Design a data structure that supports the following two operations: void addWord(word) bool search(word) search(word) can search a literal word or a ...
2019-04-29
0
512
210. Course Schedule II
There are a total of n courses you have to take, labeled from 0 to n-1. Some courses may have prerequisites, for example to take course 0 you have to...
2019-04-29
0
556
208. Implement Trie (Prefix Tree)
Implement a trie with insert, search, and startsWith methods. Example: Trie trie = new Trie(); trie.insert("apple"); trie.search("ap...
2019-04-29
0
661
首页
上一页
1
2
3
4
下一页
末页