Feature:刷题
@kidultff

数据结构与算法-7-1 最大子列和问题

给定K个整数组成的序列{ N1, N2, ..., NK },“连续子列”被定义为{ Ni, Ni+1, ..., Nj },其中 1≤i≤j≤K。“最大子列和”则被定义为所有连续子列元素的和中最大者。例如给定序列{ -2, 11, -4, 13, -5, - ...
  • 0
  • 0
@kidultff

PAT-A 真题- 1015. Reversible Primes

原题干:A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a reversible prime because its reverse 37 is also a pri ...
  • 0
  • 0
@kidultff

PAT-A 真题- 1090. Highest Price in Supply Chain

原题干:A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer.Starting from one root supplier, everyone on the chain ...
  • 0
  • 0
@kidultff

PAT-A 真题- 1019. General Palindromic Number

原题干:A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All single digit numbers are palindromic numbers.Although palindromic ...
  • 0
  • 0
@kidultff

PAT-A 真题- 1031. Hello World for U

原题干:Given any string of N (>=5) characters, you are asked to form the characters into the shape of U. For example, "helloworld" can be printed as:h  d e  l l  r lowoThat is, the characters mus ...
  • 0
  • 0