- 博客(65)
- 资源 (13)
- 收藏
- 关注
原创 [PAT]1013. Battle Over Cities (25)@Java
1013. Battle Over Cities (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueIt is vitally important to have all the
2017-08-30 11:23:56 555 1
原创 数据结构之连通集(Java)
package go.jacob.day830;/** * 连同集数据结构 * @author Jacob * */public class UF { private int count;// 记录连同集数,刚开始的时候为N private int[] id;// 用来记录每个点属于哪个集合 private int[] size;// 加权unionfind算法使用,记录每个
2017-08-30 10:25:38 1351
原创 [PAT]1012. The Best Rank (25)@Java
1012. The Best Rank (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueTo evaluate the performance of our first yea
2017-08-29 14:42:15 503 1
原创 [PAT]1012. The Best Rank (25)@Java
1012. The Best Rank (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueTo evaluate the performance of our first yea
2017-08-29 14:28:43 742
原创 [PAT]1011. World Cup Betting (20)@Java解题报告
1011. World Cup Betting (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueWith the 2010 FIFA World Cup running, fo
2017-08-29 09:40:03 520
原创 [PAT]1010. Radix (25)@Java解题报告
1010. Radix (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a pair of positive integers, for example, 6 an
2017-08-28 11:10:44 602 1
原创 [PAT]1009. Product of Polynomials (25)@Java
1009. Product of Polynomials (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThis time, you are supposed to find
2017-08-27 11:04:08 435
原创 两道2017华为校招Java面试题
面试题是实验室师兄面试提供的。两道题题1:Java中System.out.print()如何理解?查阅API文档,我们可以知道:System是Java中的一个类,而out是System类的成员 。out属于java.io.PrintStream类。在System中的定义为:public static final PrintStream out = new PrintStream()
2017-08-26 16:45:57 5367
原创 [PAT]1007. Maximum Subsequence Sum (25)@Java
1007. Maximum Subsequence Sum (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a sequence of K integers { N
2017-08-26 11:26:38 471
原创 [PAT]1006. Sign In and Sign Out (25)@Java
1006. Sign In and Sign Out (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAt the beginning of every day, the fi
2017-08-26 10:33:01 535
原创 [PAT]1005. Spell It Right (20)@Java
1005. Spell It Right (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a non-negative integer N, your task i
2017-08-26 10:04:56 301
原创 [PAT]1004. Counting Leaves (30)@Java
1004. Counting Leaves (30)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA family hierarchy is usually presented by a
2017-08-25 12:00:09 603
原创 [PAT]Emergency (25)@Java
As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams in each city and the
2017-08-24 11:39:58 331
原创 [PAT]1002. A+B for Polynomials (25)
1002. A+B for Polynomials (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThis time, you are supposed to find A+
2017-08-22 11:43:46 357
原创 [PAT]1001 A+B Format (20)
链接:https://www.nowcoder.com/questionTerminal/30ebf35cea7f4e8398dd0f12c069dc76来源:牛客网[编程题]A+B Format (20)热度指数:743时间限制:1秒空间限制:32768K算法知识视频讲解Calculate a + b and output the sum in stand
2017-08-22 10:38:57 291
原创 [PAT]1081 Rational Sum (20)
最近在憋小论文,算法题练的会少一点。接下来开始刷PAT甲级题库,十一月份考试。1081. Rational Sum (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, Yue
2017-08-22 10:01:21 414
原创 [leetcode]47. Permutations II@Java解题报告
https://leetcode.com/problems/permutations-ii/description/Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2] h
2017-08-19 11:10:05 1002
原创 [leetcode]46. Permutations@Java解题报告
https://leetcode.com/problems/permutations/description/Given a collection of distinct numbers, return all possible permutations.For example,[1,2,3] have the following permutations:
2017-08-19 10:34:27 588
原创 [leetcode]142. Linked List Cycle II@Java解题报告
https://leetcode.com/problems/linked-list-cycle-ii/description/Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Note: Do not modify the li
2017-08-18 12:18:25 705
原创 [leetcode]141. Linked List Cycle@Java解题报告
https://leetcode.com/problems/linked-list-cycle/discuss/Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?package go
2017-08-18 11:00:04 424
原创 [leetcode]86. Partition List@Java解题报告
https://leetcode.com/problems/partition-list/description/Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You
2017-08-17 12:17:37 327
原创 [leetcode]61. Rotate List@Java解题报告
https://leetcode.com/problems/rotate-list/description/Given a list, rotate the list to the right by k places, where k is non-negative.For example:Given 1->2->3->4->5->NULL and k = 2,retu
2017-08-17 10:57:20 451
原创 [leetcode]19. Remove Nth Node From End of List@Java解题报告
https://leetcode.com/problems/remove-nth-node-from-end-of-list/description/Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked lis
2017-08-17 10:03:41 846
原创 [leetcode]154. Find Minimum in Rotated Sorted Array II@Java解题报告
https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/description/Follow up for "Find Minimum in Rotated Sorted Array":What if duplicates are allowed?Would this affect
2017-08-15 11:04:47 410
原创 [leetcode]133. Clone Graph@Java解题报告
https://leetcode.com/problems/clone-graph/description/Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors.OJ's undirected graph serializati
2017-08-15 10:40:35 1052
原创 [leetcode]153. Find Minimum in Rotated Sorted Array@Java解题报告
https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/description/Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(i.e., 0 1
2017-08-15 10:24:36 375
原创 网易2017内推 [编程题]小易喜欢的数列
链接:https://www.nowcoder.com/questionTerminal/49375dd6a42d4230b0dc4ea5a2597a9b来源:牛客网[编程题]小易喜欢的数列热度指数:1954时间限制:1秒空间限制:32768K算法知识视频讲解小易非常喜欢拥有以下性质的数列:1、数列的长度为n2、数列中的每个数都在1到k之间(包括1和
2017-08-14 11:55:06 1450
原创 网易2017内推 [编程题]疯狂队列
链接:https://www.nowcoder.com/questionTerminal/d996665fbd5e41f89c8d280f84968ee1来源:牛客网[编程题]疯狂队列热度指数:2489时间限制:1秒空间限制:32768K算法知识视频讲解小易老师是非常严厉的,它会要求所有学生在进入教室前都排成一列,并且他要求学生按照身高不递减的顺序排列。有一
2017-08-14 10:24:40 1182
原创 网易2017内推 [编程题]堆棋子@Java
链接:https://www.nowcoder.com/questionTerminal/27f3672f17f94a289f3de86b69f8a25b来源:牛客网[编程题]堆棋子热度指数:2256时间限制:1秒空间限制:32768K算法知识视频讲解小易将n个棋子摆放在一张无限大的棋盘上。第i个棋子放在第x[i]行y[i]列。同一个格子允许放置多个棋子。每
2017-08-13 20:25:35 1714 2
原创 网易2017内推 [编程题]独立的小易@Java
链接:https://www.nowcoder.com/questionTerminal/a99cdf4e2f44499e80749699cc2ec2b9来源:牛客网[编程题]独立的小易热度指数:2654时间限制:1秒空间限制:32768K算法知识视频讲解小易为了向他的父母表现他已经长大独立了,他决定搬出去自己居住一段时间。一个人生活增加了许多花费: 小易每
2017-08-13 15:31:39 1640
原创 网易2017内推 [编程题]操作序列@Java
链接:https://www.nowcoder.com/questionTerminal/b53bda356a494154b6411d80380295f5来源:牛客网[编程题]操作序列热度指数:3175时间限制:2秒空间限制:32768K算法知识视频讲解小易有一个长度为n的整数序列,a_1,...,a_n。然后考虑在一个空序列b上进行n次以下操作:1、将
2017-08-13 11:11:05 1015
原创 网易2017内推 [编程题] 交错01串@Java
https://www.nowcoder.com/question/next?pid=6291726&qid=112724&tid=9846874[编程题] 交错01串时间限制:1秒空间限制:32768K如果一个01串任意两个相邻位置的字符都是不一样的,我们就叫这个01串为交错01串。例如: "1","10101","0101010"都是交错01
2017-08-13 10:47:51 988
原创 网易2017内推 [编程题] 等差数列@Java
https://www.nowcoder.com/question/next?pid=6291726&qid=112723&tid=9846874[编程题] 等差数列时间限制:1秒空间限制:32768K如果一个数列S满足对于所有的合法的i,都有S[i + 1] = S[i] + d, 这里的d也可以是负数和零,我们就称数列S为等差数列。小易现
2017-08-13 10:37:18 2118
原创 2017网易校招内推 [编程题] 彩色的砖块@Java
https://www.nowcoder.com/test/question/8c29f4d1bea84d6ba2847e079b7420f7?pid=6291726&tid=9846874[编程题] 彩色的砖块时间限制:1秒空间限制:32768K小易有一些彩色的砖块。每种颜色由一个大写字母表示。各个颜色砖块看起来都完全一样。现在有一个给
2017-08-13 10:16:47 3111
原创 [leetcode]109. Convert Sorted List to Binary Search Tree@Java解题报告
https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/description/Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST
2017-08-13 10:00:51 515
原创 [leetcode]145. Binary Tree Postorder Traversal@Java解题报告
https://leetcode.com/problems/binary-tree-postorder-traversal/description/Given a binary tree, return the postorder traversal of its nodes' values.For example:Given binary tree {1,#,
2017-08-10 10:33:06 374
原创 [leetcode]144. Binary Tree Preorder Traversal@Java解题报告
https://leetcode.com/problems/binary-tree-preorder-traversal/description/Given a binary tree, return the preorder traversal of its nodes' values.For example:Given binary tree {1,#,2,
2017-08-10 10:15:59 380
原创 [leetcode]129. Sum Root to Leaf Numbers@Java解题报告
https://leetcode.com/problems/sum-root-to-leaf-numbers/description/Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An example is
2017-08-10 09:59:12 412
原创 [leetcode]124. Binary Tree Maximum Path Sum@Java解题报告
https://leetcode.com/problems/binary-tree-maximum-path-sum/discuss/Given a binary tree, find the maximum path sum.For this problem, a path is defined as any sequence of nodes from some
2017-08-09 11:21:05 667
原创 [leetcode]117. Populating Next Right Pointers in Each Node II@Java解题报告
https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii/description/Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree coul
2017-08-09 10:36:27 331
jna-4.2.1.jar
2017-12-06
SpringAPI文档中文版
2017-10-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人