Notice
Recent Posts
Recent Comments
Link
코딩 공부
코딩 인터뷰 퀘스천 완전 분석 - Create Target Array in the Given Order 본문
[LeetCode] [Easy] 1389. Create Target Array in the Given Order
leetcode.com/problems/create-target-array-in-the-given-order/
Create Target Array in the Given Order - 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
주어진 숫자 배열을 주어진 인댁스 자리에 넣기
같은 인댁스에 넣을경우 기존에 있던 숫자는 오른쪽으로 밀려야해요. List에 add 함수가 이런 방식으로 삽입하니까 그걸 쓰면 따로 알고리즘을 생각안해도 될 것 같아요 ㅋㅋㅋ 마지막은 정수 배열로 변환해서 리턴해주면 끝
'Coding' 카테고리의 다른 글
코딩 인터뷰 퀘스천 완전 분석 - Maximum Product of Two Elements in an Array (0) | 2020.10.22 |
---|---|
코딩 인터뷰 퀘스천 완전 분석 - Matrix Diagonal Sum (0) | 2020.10.21 |
코딩 인터뷰 퀘스천 완전 분석 - Shuffle String (0) | 2020.10.20 |
코딩 인터뷰 퀘스천 완전 분석 - Sum of Left Leaves (0) | 2020.10.17 |
코딩 인터뷰 퀘스천 완전 분석 - Maximum 69 Number (0) | 2020.10.17 |
Comments