alex im

  • 홈
  • 태그
  • 방명록

binarysearch 1

[알고리즘] Leetcode 704. Binary Search 이진 검색 알고리즘

704. Binary Search Given an array of integers nums which is sorted in ascending order, and an integer target, write a function to search target in nums. If target exists, then return its index. Otherwise, return -1. You must write an algorithm with O(log n) runtime complexity. 오름차순으로 주어진 정수 배열과 정수 타겟이 주어지고 타겟을 숫자로 검색하는 함수를 만드세요. 타겟이 존재한다면 index를 리턴하고 그렇지 않으면 -1를 리턴하세요. 시간 복잡도는 반드시 O(log n)이어야 합니..

알고리즘, 자료구조 2022.05.18
이전
1
다음
더보기
프로필사진

  • 분류 전체보기 (35)
    • Javascript (8)
    • React (14)
    • Node (1)
    • 알고리즘, 자료구조 (9)
    • 영어공부 (0)
    • 기타 (3)

Tag

Props, js, binarysearch, webpack, 프밍, floatpoint, useRef, async, React, log, Class, Algorithm, leetcode, State, array, 프밍챌린지, 영어공부, 클린코드, Promise, 부동소수점,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/08   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

  • TIL

티스토리툴바