Character pyramid

Time:2021-12-7

Common printing graphics programming problems

Character pyramid

  1. List multiplication
  2. String splicing, fixed width centered

    Character pyramid

Character pyramid

Average height

  1. List generation
  2. Data type conversion
  3. Format output
  4. Higher order function reduce

Character pyramid

Digital triangle

Unpacking list parameters

Character pyramid

Interview scoring

Civil servants were graded on the spot during the interview. There are 7 examiners who input several groups of scores from the keyboard, with 7 scores in each group (percentage system), remove one highest score and one lowest score, and output the average score of each group.

Character pyramid

Print arrow

Input, an integer (2 ~ 20), print the left moving wave fist arrow

Character pyramid

Another solution

Character pyramid

X-shaped pattern

1. Determine the star index at the beginning and end

2. The first star is related to the number of rows, the tail star is symmetrical to the number of column widths and the position of the first star, and the rest are empty

Character pyramid

Hollow square

Character pyramid

Straight triangle

Character pyramid

diamond

Character pyramid

K-shape

Character pyramid

Empty triangle

Character pyramid

This work adoptsCC agreement, reprint must indicate the author and the link to this article

Recommended Today

Heavyweight Tencent cloud open source industry’s first etcd one-stop governance platform kstone

​ Kstone open source At the kubecon China Conference held by CNCF cloud native foundation on December 9, 2021,Tencent cloud container tke team released the open source project of kstone etcd governance platform. KstoneIt was initiated by the TKE team of Tencent cloud containerCloud native one-stop etcd governance project based on kubernetes。 The project originates […]