- 博客(4)
- 收藏
- 关注
原创 删除链表中的重复元素
题目删除链表中的重复元素,如链表1->1>2>3>1>5,删除重复元素过后新链表尾2->3->5.相对于常规的链表删除重复元素的题目,这次题目中链表元素不是有序的.代码public ListNode deleteDuplication(ListNode pHead) { ListNode preNode = new ListNode(0); ListNode node
2017-06-03 13:37:42 427
原创 欧拉计划第5题
原题:2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.What is the smallest positive number that is evenly divisible by all of the numbers from 1 t
2016-07-14 13:16:02 1598
原创 欧拉计划第4题
欧拉计划第4题原题: A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.Find the largest palindrome made from the product of two
2016-07-12 12:38:12 622
原创 欧拉计划第3题
import java.util.*;public class MyClass { public static void main(String args[]){ long n = 600851475143L; ArrayList list = new ArrayList(); long result; for(long i =2;i <= n;i++){
2016-07-08 11:30:16 669
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人