摘要:
By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23. 37 42 4 68 5 9 3 That is, 3 + 7 + 4 + 9 = 23. Find the maximum... 阅读全文
摘要:
题目链接 现在做这个题目真是千万只草泥马在心中路过 这个与上面一题差不多 这个题目是求e的第100个分数表达式中分子的各位数之和 What is most surprising is that the important mathematical constant,e = [2; 1,2,1, 1,4,1, 1,6,1 , ... , 1,2k,1, ...]. The firs... 阅读全文
摘要:
题目链接 找循环位数是奇数的数有多少个 这个自己很难写出来,完全不能暴力 维基百科链接 维基百科上面说的很好,上面的算法实现就好了。 就是上面的 Java程序: package project61; public class P64{ void run(){ int count = 0; int m = 0; i... 阅读全文
摘要:
题目链接 The 5-digit number, 16807=75, is also a fifth power. Similarly, the 9-digit number, 134217728=89, is a ninth power. How many n-digit positive int 阅读全文
摘要:
This function returns a list of tuples, where the i-th tuple contains the i-th element from each of the argument sequences or iterables. The returned ... 阅读全文
摘要:
Longest Substring Without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters. For example, the ... 阅读全文
摘要:
Add Two NumbersYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes co... 阅读全文
摘要:
Two SumTotal Accepted: 125096 Total Submissions: 705262Question SolutionGiven an array of integers, find two numbers such that they add up to a specif... 阅读全文
摘要:
Lambda, filter, reduce and mapLambda OperatorSome like it, others hate it and many are afraid of the lambda operator. We are confident that you will l... 阅读全文