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

Done is better than perfect

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

Done is better than perfect

검색하기 폼
  • 분류 전체보기 (113)
    • 경제뉴스 (0)
    • IT (84)
      • Problem Solving (48)
      • Math (4)
      • Linux (1)
      • Rust (3)
      • C, C++ (10)
      • 자료구조, 알고리즘 (11)
      • Kafka (2)
      • Python (3)
    • 일상 (26)
      • 내돈내산 식당 (26)
    • 암호화폐 (3)
  • 방명록

Search for a Range (1)
[C++] LeetCode : Search for a Range

Question Given an array of integers nums sorted in non-decreasing order, find the starting and ending position of a given target value. If target is not found in the array, return [-1, -1]. You must write an algorithm with O(log n) runtime complexity. 오름차순으로 정렬된 정수 배열이 주어지면 주어진 목표 값의 시작 위치와 끝 위치를 찾습니다. 배열에서 target을 찾을 수 없으면 [-1, -1]을 반환합니다. 시간 복잡도가 O(log n)인 알고리즘을 작성해야 합니다. 제약사항 0

IT/Problem Solving 2022. 7. 20. 07:28
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 알고리즘
  • 속초 맛집
  • DP
  • interview question
  • 솔직후기
  • 기술면접
  • 속초
  • 러스트
  • 맛집
  • 반드시 알아야 할 자료구조
  • ProblemSolving
  • Medium
  • 리트코드
  • 러스트 입문
  • 인터뷰
  • 자료구조
  • Interview
  • Tree
  • coding interview
  • algorithm
  • 러스트 배우기
  • 트리
  • 내돈내산
  • rust
  • PS
  • LeetCode
  • Problem Solving
  • C++
  • 코딩인터뷰
  • 러스트 기초
more
«   2025/07   »
일 월 화 수 목 금 토
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 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바