Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 상가수익률계산기
- python priority queue
- python Leetcode
- 파이썬 릿코드
- 릿코드풀기
- python 릿코드
- LeetCode
- 파이썬알고리즘
- 릿코드
- 릿코드 파이썬
- python sorted
- 파이썬 프로그래머스
- python zip_longest
- leetcode풀이
- python xor
- 파이썬릿코드풀기
- python 알고리즘
- 릿코드풀이
- binary search
- 파이썬알고리즘풀기
- 잇츠디모
- 알고리즘풀기
- leetcode풀기
- 파이썬 알고리즘
- leetcode 풀기
- 파이썬릿코드
- 알고리즘풀이
- 릿코드 풀기
- 코틀린기초
- 파이썬 알고리즘 풀기
Archives
- Today
- Total
목록python sorted array to binary search tree (1)
소프트웨어에 대한 모든 것

108. Convert Sorted Array to Binary Search Tree https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/ 문제) 솔루션1) 재귀 # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def sortedArrayToBST(self, nums: List[int]) -> Optional[TreeNode]: if not nums: ret..
알고리즘/LeetCode
2022. 2. 27. 12:32