We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
안녕하세요 박상길 작가님! 26번 문제를 풀고 깃허브 코드를 보다가 간단한 오타가 보여 글을 올립니다.
문제 파일 링크
# Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None class MyCircularDeque: def __init__(self, k: int): self.head, self.tail = ListNode(None), ListNode(None) self.k, self.len = k, 0 self.head.right, self.tail.left = self.tail, self.head
해당 문제에서 이중 연결 리스트를 사용하셨는데, 정작 클래스 정의에는 단일 방향 리스트가 사용되었습니다. 하지만 신기하게도 다음 두 경우 덕분에 리트코드에서 통과는 문제가 없습니다.
self.head.right, self.tail.left = self.tail, self.head
다만, 수정하는 편이 조금이나마 헤매는 사람을 없앨 수 있을 것 같아서 글을 남깁니다. 좋은 책 감사합니다!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
안녕하세요 박상길 작가님! 26번 문제를 풀고 깃허브 코드를 보다가 간단한 오타가 보여 글을 올립니다.
문제 파일 링크
해당 문제에서 이중 연결 리스트를 사용하셨는데, 정작 클래스 정의에는 단일 방향 리스트가 사용되었습니다.
하지만 신기하게도 다음 두 경우 덕분에 리트코드에서 통과는 문제가 없습니다.
ex.)
self.head.right, self.tail.left = self.tail, self.head
다만, 수정하는 편이 조금이나마 헤매는 사람을 없앨 수 있을 것 같아서 글을 남깁니다.
좋은 책 감사합니다!
The text was updated successfully, but these errors were encountered: