본문 바로가기 메뉴 바로가기

니즈 개발 일기

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

니즈 개발 일기

검색하기 폼
  • 분류 전체보기 (47)
    • Development (47)
      • Python (13)
      • Go (1)
      • Cloud (2)
      • Algorithms (8)
      • Docker and k8s (7)
      • Javascript (1)
    • Product Review (0)
    • Books (0)
    • ETC (0)
  • 방명록

Bisect (1)
Leetcode 35 Search insert Position

Question Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. Solution class Solution: def searchInsert(self, nums: List[int], target: int) -> int: return 1일1깡 방법 if target in nums: return nums.index(target) else: nums.append(target) nums.sort() return nums.index(target) Binary Search low = 0 hi..

Development/Algorithms 2020. 6. 8. 01:18
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • K8S
  • book
  • kubernetes context
  • leetcode
  • 파이썬
  • Fine-Tuning
  • error
  • collator
  • Binary
  • 키보드
  • Algorithm
  • go
  • AWS
  • lllm
  • Git
  • palindrome
  • Shell
  • feed-forward
  • Kubernetes
  • LLM
  • csv
  • 나는리뷰어다
  • Gemma
  • 한빛미디어
  • Container
  • kubens
  • 책리뷰
  • BASIC
  • docker
  • Python
more
«   2026/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
글 보관함
반응형

Blog is powered by Tistory / Designed by Tistory

티스토리툴바