zhelddustmq 님의 블로그

  • 홈
  • 태그
  • 방명록

2024/07/23 2

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. Example 1:Input: nums = [-1,0,3,5,9,12], target = 9Output: 4Explanation: 9 exists in nums and its index is 4Example 2:Input: nums = [-1,0,3,..

문제 풀이/LeetCode 2024.07.23

973. K Closest Points to Origin(with. HashTable)

Given an array of points where points[i] = [xi, yi] represents a point on the X-Y plane and an integer k, return the k closest points to the origin (0, 0).The distance between two points on the X-Y plane is the Euclidean distance (i.e., √(x1 - x2)2 + (y1 - y2)2).You may return the answer in any order. The answer is guaranteed to be unique (except for the order that it is in). Example 1:Input: po..

문제 풀이/LeetCode 2024.07.23
이전
1
다음
더보기
프로필사진

zhelddustmq 님의 블로그

zhelddustmq 님의 블로그 입니다.

  • 분류 전체보기 (157)
    • 선형 대수 (2)
    • 인공지능 (4)
      • 컴퓨터 비전 (0)
      • CS231n (1)
      • LangChain (2)
      • RAG (1)
    • Web (49)
      • Anaconda (1)
      • SQL (6)
      • Django (38)
      • Postman (3)
      • 트러블 슈팅 (1)
    • 문제 풀이 (55)
      • 백준 Baekjoon (3)
      • SWEA (17)
      • LeetCode (6)
    • 알고리즘 (15)
    • 파이썬 (8)
    • CS (10)
    • 금일 할 일 (2)
    • etc (12)
      • 잡다한 것 (12)
    • Synopsis (0)
      • BlackDuck (0)
      • Coverity (0)
      • Defensics (0)

Tag

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2024/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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바