본문 바로가기

부부의 코딩 성장 일기

검색하기
부부의 코딩 성장 일기
프로필사진 펩시_콜라

  • 분류 전체보기 (147)
    • Algorithm (135)
      • LeetCode (135)
    • Python (6)
      • Fundamentals (5)
      • Libraries (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2024/02   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29
Tags
  • Depth-first Search
  • Array
  • DP
  • math
  • binary tree
  • linked list
  • hash table
  • Medium
  • sorting
  • list
  • 리트코드
  • Binary
  • two pointers
  • backtracking
  • leetcode
  • 문자열
  • dfs
  • 재귀
  • Python
  • 미디움
  • HashTable
  • 쉬움
  • recursive
  • binary search
  • easy
  • 이진트리
  • matrix
  • tree
  • string
  • 중간
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록2024/02/03 (1)

부부의 코딩 성장 일기

LeetCode 92(Reverse Linked List II, Python)

1. 문제 링크 https://leetcode.com/problems/reverse-linked-list-ii/ Reverse Linked List II - LeetCode Can you solve this real interview question? Reverse Linked List II - Given the head of a singly linked list and two integers left and right where left Optional[ListNode]: # 예외 처리: 노드가 없거나 하나뿐이면 원래 리스트 반환 if not head or not head.next: return head # 예외 처리: 노드가 두 개일 때 if not head.next.next: # left와 righ..

Algorithm/LeetCode 2024. 2. 3. 19:00
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바