LeetCode题解(2)-- Add Two Numbers
摘要:原题: https://leetcode.com/problems/add-two-numbers/ You are given two linked lists representing two non-negative numbers. The digits are stored in reve
阅读全文
LeetCode题解(1)--Two Sum
摘要:原题: https://leetcode.com/problems/two-sum/ Given an array of integers, find two numbers such that they add up to a specific target number. The functio
阅读全文
STL review:vector & string & map & struct
摘要:I.vector1.头文件:#include //容器vector是一个能实现随机存取、插入删除的动态数组,还可以当栈使。 2.创建: vector v1; // 里可以是struct或者vector嵌套:vector > ivec;vector是...
阅读全文