https://leetcode.com/problems/remove-element/description/?envType=study-plan-v2&envId=top-interview-150IntuitionInplace๋ก ๋ณํ์ ํด์ผํ๊ธฐ ๋๋ฌธ์ ์ถ๊ฐ์ ์ธ ๋ณ์ ์ ์ธ์ ํ์ง ์๊ณ ๋ฐฐ์ด์ ๋ณ๊ฒฝํ๋ ๋ฐฉ๋ฒ์ ์ฌ์ฉํ๋ค๊ณ ์๊ฐํ๋ค.Approach๋ฐฐ์ด์ ํ์๊ณผ ๋ฌด๊ดํ idx ํฌ์ธํฐ๋ฅผ ์ก์ ๋ฐฐ์ด์ ์์ ์ค val๊ณผ ๋ค๋ฅธ ์์๊ฐ ๋์ฌ ๊ฒฝ์ฐ idx์ ์ ์ฅํ๋๋ก ๊ตฌํํ์๋ค. Inplace์ ๋ชฉ์ ์ ๋ง๊ฒ ๋ฐฐ์ด์ ๋ํ ์ถ๊ฐ์ ์ธ ๊ณต๊ฐ์ด ํ์ ์๋๋ก ๊ตฌํํ์๋ค.Complexity- Time complexity : O(N)- Space complexity : O(1) Codeclass Solution {public: int remov..