Notice
Recent Posts
Recent Comments
Link
«   2026/06   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Tags
more
Archives
Today
Total
관리 메뉴

개발자도전

[LeetCode] Valid Mountain Array 본문

LeetCode

[LeetCode] Valid Mountain Array

도do 2023. 1. 31. 21:39
728x90

[문제]

배열 안의 숫자들이 증가하다가 감소하는 모양이 산모양이 되어야 함.

 

[입출력 예]

Example 1:

Input: arr = [2,1]
Output: false

Example 2:

Input: arr = [3,5,5]
Output: false

Example 3:

Input: arr = [0,3,2,1]
Output: true

 

 

[답]

728x90
Comments