본문 바로가기

오구의코딩모험

검색하기
오구의코딩모험
프로필사진 오구.cpp

  • 오구의 코딩모험 (118) N
    • 프로그래밍 공부 (93)
      • 백준 알고리즘 (53)
      • 프로그래머스 (32)
      • 코드트리 (2)
      • 해커랭크 (3)
    • Game (16) N
      • DirectX (9)
      • Server (5)
      • GAS (2) N
    • AI (8)
      • ML,DL (5)
      • Streamlit (2)
      • 선형대수학 (1)
    • ETC (1)
      • Event (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/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
  • boj 11657
  • the longest increasing subsequence
  • lock free stack
  • string construction
  • gas
  • c++
  • the maximum subarray
  • making anagrams
  • lock based queue
  • 2025 프로그래머스 코딩챌린지 1차예선
  • 지게차와 크레인
  • boj 1074
  • LCS
  • boj 6443
  • dp
  • pccp 기출문제 풀이
  • DirectX
  • boj 1717
  • DirectX12
  • 프로그래밍공부
  • PCCE
  • 브루트포스
  • count triplets
  • find the town judge
  • find the running median
  • ice cream parlor
  • two characters
  • pcce 기출문제 풀이
  • lock based stack
  • special string again
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록같은 숫자는 싫어 python (1)

오구의코딩모험

[Python] 같은 숫자는 싫어

[코딩테스트 고득점 KIT - 스택/큐] 리스트를 인덱스 순서대로 검사하며 중복이 아닐 경우에만, 정답 리스트에 추가한다. def solution(arr): answer = [arr[0]] for idx in range(len(arr)): if answer[-1] != arr[idx]: answer.append(arr[idx]) return answer

프로그래밍 공부/프로그래머스 2022. 12. 24. 22:53
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바