We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a74e33 commit 27e2d88Copy full SHA for 27e2d88
1 file changed
live9/test98/문제3/백유진.py
@@ -0,0 +1,11 @@
1
+def solution(prices):
2
+ answer = []
3
+
4
+ for i in range(len(prices)):
5
+ sec = 0
6
+ for j in range(i+1, len(prices)):
7
+ sec += 1
8
+ if prices[i] > prices[j]:
9
+ break
10
+ answer.append(sec)
11
+ return answer
0 commit comments