LeetCode
大青上
这个作者很懒,什么都没留下…
展开
-
LeetCode- python [Add Two Numbers]
Add two numbersYou 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 num...原创 2018-04-10 11:33:07 · 515 阅读 · 0 评论 -
LeetCode-Python [Longest Substring Without Repeating Characters]
题目: Given a string, find the length of the longest substring without repeating characters. Examples:Given “abcabcbb”, the answer is “abc”, which the length is 3.Given “bbbbb”, the answer is “b”...原创 2018-04-10 21:09:20 · 344 阅读 · 0 评论 -
LeetCode链表篇C++ [逆序、回文、逆序II]
1. 关键点结点定义//Definition for singly-linked list. struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {}};核心: 逆序思想 参考:https://blog.csdn.net/lycnjupt/ar...原创 2018-04-19 14:48:19 · 719 阅读 · 0 评论