# @param {Integer} n
# @return {Integer}
def tribonacci(n)
a,b,c=0,1,1
n.times{a,b,c=b,c,a+b+c}
a
end
너무 쉽긴했다1137. N-th Tribonacci Number
chromat..(hjroh0315)
2023-01-30 20:40
추천 0
다른 게시글
-
352. Data Stream as Disjoint Intervals개발뉴비(coderhs) | 23.01.29추천 0
-
구글러에게 들은 코딩인터뷰 팁익명(203.226) | 23.01.28추천 0
-
352. Data Stream as Disjoint Intervals [1]이벤트(219.251) | 23.01.28추천 0
-
352. Data Stream as Disjoint Intervals [1]chromate00(hjroh0315) | 23.01.28추천 0
-
472. Concatenated Words [1]이벤트(219.251) | 23.01.28추천 0
-
472. Concatenated Words [1]개발뉴비(coderhs) | 23.01.28추천 0
-
하드라니 오늘 풀 수 있을까익명(118.235) | 23.01.27추천 0
-
472. Concatenated Wordschromate00(hjroh0315) | 23.01.27추천 0
-
787. Cheapest Flights Within K Stops개발뉴비(coderhs) | 23.01.26추천 0
-
787. Cheapest Flights Within K Stops이벤트(219.251) | 23.01.26추천 0
댓글 0