-->
当前位置:首页 > Luz 第2627页
Luz

Luz 管理员

暂无介绍

89860 篇文章 33 次评论

PROGRAMMING:Prime pair conjecture

Luz5年前 (2021-05-10)404
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

Luz5年前 (2021-05-10)433
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

Luz5年前 (2021-05-10)466
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

Luz5年前 (2021-05-10)498
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

Luz5年前 (2021-05-10)418
Given a sequence of $$K$$ integers { $$N_ 1$$, $$N_ 2$$, ..., $$N_ K$$ }. A continuous subsequence is defined to be { $$…

PROGRAMMING:Isomorphism of trees

Luz5年前 (2021-05-10)537
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

Luz5年前 (2021-05-10)541
An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when…

PROGRAMMING:List Leaves

Luz5年前 (2021-05-10)529
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

Luz5年前 (2021-05-10)555
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

Luz5年前 (2021-05-10)459
Given a stack which can keep $$M$$ numbers at most. Push $$N$$ numbers in the order of 1, 2, 3, ..., $$N$$ and pop rand…