본문 바로가기

hanbin.dev

검색하기
hanbin.dev
프로필사진 hanbindev

  • 분류 전체보기 (54)
    • AWS (6)
    • 객체 지향 (2)
    • 겪었던 오류 (8)
    • Django (2)
    • Network (3)
    • 코딩테스트 (12)
    • Python (6)
    • Docker (1)
    • DB (4)
Guestbook
Today
Total
Notice
Recent Posts
Recent Comments
Link
  • my github
«   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
  • TypeError: 'property' object is not iterable
  • classproperty
  • github skyline
  • MySQL server on 'db' (115)
  • 재귀함수가 뭔가요
  • AWS S3
  • docker-compose
  • 우아한 테크코스 2차 합격
  • depends
  • 우아한테크코스 2차
  • METACLASS
  • depends_on
  • python all testcode
  • 코딩테스트
  • AWS
  • EC2
  • Spring
  • S3
  • github
  • DB
  • 갓재석
  • 프로그래머스
  • docker
  • classmethod
  • Django
  • OperationalError
  • javascript
  • 2차 코딩테스트
  • springboot 3.0.0
  • python
more
Archives
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록프로그래머스 체육복 (1)

hanbin.dev

[코딩테스트] 프로그래머스 체육복 with javascript

문제 풀이 코드 function solution(n, lost, reserve) { var answer = 0; var duplicatedStudent = [] for (var i = 0; i < lost.length; i++){ if (reserve.includes(lost[i])){ duplicatedStudent.push(lost[i]); // #1 } } for (var student of duplicatedStudent){ var reserveIdx = reserve.indexOf(student); // #2 reserve.splice(reserveIdx,1); var lostIdx = lost.indexOf(student); lost.splice(lostIdx,1); } answer = n -..

코딩테스트 2021. 5. 6. 17:30
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바