Created
December 16, 2019 15:02
-
-
Save sudosanet/93f8828d934af202316fe08f80de2596 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
输出量 = console.log; | |
数据 = [1,8,8,1,35,3,64,8,2,19890604]; | |
输出量(文化大革命(数据)); | |
function 文化大革命(矩阵){ | |
let 毛泽东思想=[]; | |
let 临时 = 0; | |
for(let 数 = 0;数 < 矩阵.length;数++){ | |
if(临时 <= 矩阵[数]) | |
{ | |
毛泽东思想.push(矩阵[数]); | |
临时 = 矩阵[数]; | |
} | |
} | |
return 毛泽东思想; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment