当前位置:首页
> Luz 第2627页
Luz 管理员
暂无介绍
89860 篇文章 33 次评论PROGRAMMING:Prime pair conjecture
Let's define $$d_ N $$is: $$d_ n = p_{ n+1}-p_ N $$, where $$p_ I $$is the $$I $$th prime. Obviously there is $$d_ 1 = 1…
PROGRAMMING:Have Fun with Numbers
Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. D…
PROGRAMMING:On the right shift of array elements
There are $$n $$($$˃ 0 $$) integers in an array $$a $. On the premise that no other array is allowed, move each integer…
PROGRAMMING:Multiplication and addition of polynomials of one variable
Design function to find the product and sum of two polynomials of one variable.###Input format:The input is divided into…
PROGRAMMING:Maximum Subsequence Sum
Given a sequence of $$K$$ integers { $$N_ 1$$, $$N_ 2$$, ..., $$N_ K$$ }. A continuous subsequence is defined to be { $$…
PROGRAMMING:Isomorphism of trees
Given two trees T1 and T2. If T1 can be changed into T2 by several times of left and right child exchange, then we call…
PROGRAMMING:Tree Traversals Again
An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when…
PROGRAMMING:List Leaves
Given a tree, you are supposed to list all the leaves in the order of top down, and left to right.### Input Specificatio…
PROGRAMMING:Reversing Linked List
Given a constant $$K$$ and a singly linked list $$L$$, you are supposed to reverse the links of every $$K$$ elements on…
PROGRAMMING:Pop Sequence
Given a stack which can keep $$M$$ numbers at most. Push $$N$$ numbers in the order of 1, 2, 3, ..., $$N$$ and pop rand…