For an array A, return the min number of swaps such that the array consists of all even elements of A, followed by all odd elements of A

前端 未结 0 1604
悲&欢浪女
悲&欢浪女 2021-01-02 06:04

I\'ve come up with a solution for this question above, but I wanted to see if there were any better algorithms that can be used to accomplish the same task more efficiently

相关标签:
回答
  • 消灭零回复
提交回复
热议问题