力扣刷题第1天
1. Two Sum
Description:
Example:
1 | Input: |
Idea:
Solution:
C++代码
1 | class Solution { |
Java代码
1 | class Solution { |
Python3代码
1 | class Solution: |
2. Add Two Numbers
Description:
Example:
1 | Input: |
Idea:
Solution:
C++代码
1 | /** |
Java代码
1 | /** |
Python3代码
1 | # Definition for singly-linked list. |
Submission Detail:
提交结果 | 执行用时 | 内存消耗 | 语言 |
---|---|---|---|
Accepted | 16 ms | 44.7 MB | Cpp |
Accepted | 1 ms | 44.7 MB | Java |
Accepted | 76 ms | 14 MB | Python3 |
3. Longest Substring Without Repeating Characters
Description:
Example:
1 | Input: |
Idea:
Solution:
C++代码
1 | class Solution { |
Java代码
1 | class Solution { |
Python3代码
1 | class Solution: |
Submission Detail:
- 本文链接: http://blog.wzomg.cn/posts/4cd4f6fe.html
- 版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!