MCPcopy Create free account
hub / github.com/algorithm004-01/algorithm004-01 / Solution

Class Solution

Week 01/id_251/LeetCode_283_251.py:18–82  ·  view source on GitHub ↗

# 1 loop 两层循环统计 0 双指针的另一种写法 # 2 一个新数组,遍历非零存入新数组,最后len(old array) - len(new array)个0 # 3 index 双指针 统计非零 1 和 3 本质上差别不到,无非就是 一个统计0 一个统计非0

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected