쭈니의 코딩모험

쭈니의 코딩모험

  • 분류 전체보기 (14)
    • data structures and algorit.. (2)
  • 홈
  • 태그
  • 방명록
RSS 피드
로그인
로그아웃 글쓰기 관리

쭈니의 코딩모험

컨텐츠 검색

태그

remove leetcode ClimbingStairs search add cs1332 #자료구조 #datastructure #tree #binarytree #postorder #inorder #preorder binarytree

최근글

댓글

공지사항

아카이브

leetcode(1)

  • Leetcode - 70. Climbing Stairs

    You are climbing a staircase. It takes n steps to reach the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? 처음에는 수학문제처럼 느껴졌었는데 n 칸의 계단을 1 이나 2 만큼씩 올라갈수 있을때 몇가지 방법 이있냐는 문제였다. 일단 dp 라는걸 모른다는 가정하에 (dp 문제 였지만 ;;) 노가다로 패턴을 찾기 시작했다. n =1 ways = 1 n =2 ways = 2 n = 3 ways = 3 n = 4 ways = 5 n = 5 ways = 8 너무 힘들어서 더는 못하겠다 ㅠㅠ 잉? 근데 뭔가 느낌이 피보나치 인거 같아서 ..

    2023.10.13
이전
1
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바