# alrogithm

2개의 포스트
post-thumbnail

🚍[프로그래머스] [1차] 셔틀버스

해당 문제는 yoon-dumbo님의 프로그래머스-셔틀버스-javascript) 게시글을 보고 참고하여 풀이되었음을 미리 밝힙니다. 문제 설명 셔틀버스 카카오에서는 무료 셔틀버스를 운행하기 때문에 판교역에서 편하게 사무실로 올 수 있다. 카카오의 직원은 서로를 '크루'라고 부르는데, 아침마다 많은 크루들이 이 셔틀을 이용하여 출근한다. 이 문제에서는 편의를 위해 셔틀은 다음과 같은 규칙으로 운행한다고 가정하자. 셔틀은 09:00부

2022년 4월 6일
·
0개의 댓글
·
post-thumbnail

Leetcode :: Remove duplicates from Sorted Array

Problem Given a sorted array nums, remove the duplicates in-place such that each element appears only once and returns the new length. Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory. Solution

2021년 5월 24일
·
0개의 댓글
·