로그인 바로가기 하위 메뉴 바로가기 본문 바로가기

데이터 구조 및 분석: Linear Structure and Dynamic Programming

임시 이미지 KAIST 산업및시스템공학과 문일철
http://kooc.kaist.ac.kr/datastructure-2019s/forum/135813
좋아요 1779 수강생 3367

안녕하세요, 교수님 설명을 따라서 혼자 연습중인데  run.py를 실행시켜보니

RecursionError: maximum recursion depth exceeded while calling a Python object 라는 문구가 나오며 에러가 떴습니다.

이 에러를 해결하는 법은 없을까요?


그리고 헷갈리는 코드 부분이 있는데 영상에는 정확한 답이 나와있지 않아 여쭤봅니다.

PlanNode.py 부분에서 아래처럼 입력했는데 이게 맞는 코드일까요?

원래 ???.??? = ??????라고 힌트가 되어 있었는데 함수라고 생각해서 고쳐 넣었습니다. 

피드백 부탁드립니다 ㅠ

    def setNextNode(self, node):
        # Problem 1. complete this method
        self.setNextNode(node)

    def setPrevNode(self, node):
        # Problem 1. complete this method
        self.setPrevNode(node)