khakha's dev log

  • 홈
  • 태그
  • 방명록
  • 글쓰기
  • 관리자

Algorithm 2

[leetcode] longest-substring-without-repeating-characters

https://leetcode.com/problems/longest-substring-without-repeating-characters/ Longest Substring Without Repeating Characters - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 1. 슬라이딩 윈도우로 한 칸씩 우측으로 이동하면서 2. 윈도우 내에 모든 문자가 중복이 없도록 3. 투 포인터로 윈도우 사이즈를 조절하면서 풀이한다. def lengthOfLongestSub..

Algorithm 2022.08.12

python bisect 사용법 / 이분탐색

백준 가장 긴 증가하는 부분 수열 문제를 풀다가 python bisect 모듈을 사용해서 이분탐색을 하는 풀이에 대해서 알게되었다. https://www.acmicpc.net/problem/11053 11053번: 가장 긴 증가하는 부분 수열 수열 A가 주어졌을 때, 가장 긴 증가하는 부분 수열을 구하는 프로그램을 작성하시오. 예를 들어, 수열 A = {10, 20, 10, 30, 20, 50} 인 경우에 가장 긴 증가하는 부분 수열은 A = {10, 20, 10, 30, 20, 50} 이 www.acmicpc.net DP 풀이법 일반적인 가장 긴 증가하는 부분 수열을 구하는 알고리즘으로 구하면 O(N^2)로 구현할 수 있다. n = int(input()) arr = list(map(int, input(..

Language 2022.08.09
이전
1
다음
더보기
프로필사진

박하린의 개발 일지

글쓰기 | 관리자

  • 분류 전체보기 (104)
    • Edu (6)
      • KB IT's your life (6)
    • Frontend (21)
      • React (13)
      • Error (4)
      • Next.js (4)
    • Language (23)
      • python (3)
      • javascript (2)
      • Typescript (4)
      • JAVA (4)
    • Algorithm (36)
      • DP (1)
      • Greedy (2)
      • Bruteforce (7)
      • DFS,BFS (2)
      • Implementation (4)
      • BinarySearch (4)
    • 개발서적 (2)
      • 쏙쏙 들어오는 함수형 코딩 (2)
    • Finance (12)
    • CS (1)

최근글과 인기글

  • 최근글
  • 인기글

Archives

Calendar

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

티스토리툴바