[LeetCode] Remove Element | 난이도: Easy
문제 Given an integer array nums and an integer val, remove all occurrences of val in nums in-place. The relative order of the elements may be changed. 정수 배열 nums, 정수 타입의 변수 val가 있다. 배열 nums의 값 중에서 변수 val의 값과 일치하는 값을 뺀 배열의 길이를 구하시오. 예시 Input: nums = [3,2,2,3], val = 3 Output: 2, nums = [2,2,_,_] 답안 class Solution { public int removeElement(int[] nums, int val) { int result = 0; for(int i = 0; i i+..