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

Method Force

Week 02/id_171/TwoSumSol.cs:55–72  ·  view source on GitHub ↗

暴力解法。 双重循环,判断nums[i] + nums[j]是否等于target。 时间复杂度是O(n²)

(int[] nums, int target)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected