본문 바로가기

sy1214ei 님의 블로그

검색하기
sy1214ei 님의 블로그
프로필사진 sy1214ei

  • 분류 전체보기 (65)
    • [Coding] (47)
      • 오늘의 삽질 (1)
      • [Leet Code] (0)
      • [BOJ] (0)
      • [Programmers] (26)
    • [Paper Review] (6)
    • [Concept] (2)
    • Subject (9)
      • [DS] Data Structure (2)
      • [ML] Machine Learning (0)
      • [RL] Reinforcement Learning (0)
      • [NLP] Natural Language Proc.. (0)
      • [DB] Data Base (4)
      • [CA] Computer Algorithm (1)
      • [DL] Deep Learning (1)
      • [MLOps] ML Operations (1)
    • [Study] (1)
      • [Server] Server (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/05   »
일 월 화 수 목 금 토
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
Tags
  • Python
  • 오블완
  • CNN
  • adaptive remeshing
  • 티스토리챌린지
  • sort
  • 대학생
  • Data_Structure
  • 컴퓨터공학
  • Leet Code
  • meshgraphnet
  • code
  • Database
  • 자료구조
  • Mesh
  • 개발자
  • 컴퓨터사이언스
  • mysql
  • LeetCode
  • 코테
  • CS
  • 데베
  • 데이터
  • DS
  • 데이터베이스
  • GNN
  • db
  • SQL
  • 코딩테스트
  • coding
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Array (1)

sy1214ei 님의 블로그

[Leet Code] 1. Two Sum - Python

https://leetcode.com/problems/two-sum/description/Level: EasyTopics: Array | Hash Tableclass Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: """ 1. for i, num in enumerate(nums) : 뭔가 순회를 해야 찾든말든 할것임 2. 우리가 찾는 것 find = target - num 3. 만약 hash_table에 find가 있다면 return 4. hash_table[num] = i """ hash_table = {} for i, ..

[Coding] 2024. 12. 3. 00:25
이전 Prev 1 Next 다음

Blog is powered by AXZ / Designed by Tistory

티스토리툴바