# LeetCode 26 – Remove Element

#### Posted on January 7, 2014

##### Last updated on January 7, 2014

Solution to LeetCode Remove Element problem.

The idea is to look for elem from the left, and swap into its place something from the right of the array, so that all elems are at the end of the array. Java code:

Markdown SHA1: 945d110554ec6c19b573214891132211c81cd7d9