H-Index

2015-10-30
阅读 2 分钟
1.7k
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.

Ugly Number II

2015-10-28
阅读 2 分钟
2.4k
Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 1, 2, 3, 4, 5, 6, 8, 9, 10, 12 is the sequence of the first 10 ugly numbers.

Ugly Number

2015-10-28
阅读 1 分钟
2.4k
Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 6, 8 are ugly while 14 is not ugly since it includes another prime factor 7.

Intersection of Two Linked Lists

2015-10-22
阅读 2 分钟
2.3k
Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists, they begin to intersect at node c1.

Linked List Cycle II

2015-10-15
阅读 3 分钟
1.9k
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.