Notice
Recent Posts
Recent Comments
Link
반응형
목록coding (1)
개발에 AtoZ까지
[JAVA][Array] MoveZeros
1. 문제 Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. Example: Input: [0,1,0,3,12] Output: [1,3,12,0,0] Note: You must do this in-place without making a copy of the array. Minimize the total number of operations. 2. 문제해설 숫자들이 주어졌을때 숫자간의 순서는 유지하되 0만 맨끝쪽으로 이동시키게 하라 3. 코드포맷 public class MoveZeros { public static v..
코딩테스트 준비/기타문제
2021. 1. 25. 22:00