
LeetCode
One__Way
From the beginning
展开
-
LeetCode 边做边学(1) -两数之和
题目及参考均来自LeetCode: - 给定一个整数数组和一个目标值,找出数组中和为目标值的两个数。你可以假设每个输入只对应一种答案,且同样的元素不能被重复利用 示例: 给定 nums = [2, 7, 11, 15], target = 9 因为 nums[0] + nums1 = 2 + 7 = 9 所以返回 [0, 1]class Sol...原创 2019-02-02 23:27:45 · 344 阅读 · 0 评论 -
LeetCode 边做边学(2) -链表相加
题目来自LeetCode:You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbe...原创 2019-02-07 00:09:28 · 482 阅读 · 0 评论