905. Sort Array By Parity
Given an array A
of non-negative integers, return an array consisting of all the even elements of A
, followed by all the odd elements of A
.
You may return any answer array that satisfies this condition.
写这篇浅析完全是意料之外的,只怪才疏学浅。
刷[Leetcode]929. Unique Email Addresses的时候不能用boost库,一脸懵逼,为了去除整个字符串中的“.”,boost库中就是一句话boost::erase_all(str, ‘.’),但是stl库中没有现成的接口可以使用,求助Google,发现了erase和remove结合使用可以达到目的;