2021
12-14
12-14
C++实现LeetCode(170.两数之和之三 - 数据结构设计)
[LeetCode]170.TwoSumIII-Datastructuredesign两数之和之三-数据结构设计DesignandimplementaTwoSumclass.Itshouldsupportthefollowingoperations: add and find.add -Addthenumbertoaninternaldatastructure.find -Findifthereexistsanypairofnumberswhichsumisequaltothevalue.Example1:add(1);add(3);add(5);find(4)->truefind(7)->falseExample...
继续阅读 >