
LeetCode
Autopilot office
智能驾驶研发人员
展开
-
[LeetCode] 1. Two Sum 两数之和
Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use the same e...原创 2019-07-11 13:46:21 · 90 阅读 · 0 评论 -
[LeetCode] Add Two Numbers 两个数字相加
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 numbers and return i...原创 2019-07-11 13:47:22 · 114 阅读 · 0 评论 -
[LeetCode 19] Remove Nth Node From End of List 移除链表倒数第N个节点
Given a linked list, remove the nth node from the end of list and return its head.For example,Given linked list: 1->2->3->4->5, and n = 2.After removing the second node from the end, th...原创 2019-07-11 15:01:50 · 132 阅读 · 0 评论 -
[LeetCode63] Valid Number 验证数字
Validate if a given string can be interpreted as a decimal number.Some examples:“0” => true" 0.1 " => true“abc” => false“1 a” => false“2e10” => true" -90e3 " => true" 1e" =...转载 2019-07-19 14:13:08 · 183 阅读 · 0 评论 -
LeetCode] 189. Rotate Array 旋转数组
Given an array, rotate the array to the right by k steps, where k is non-negative.Example 1:Input: [1,2,3,4,5,6,7] and k = 3Output: [5,6,7,1,2,3,4]Explanation:rotate 1 steps to the right: [7,1,2,...原创 2019-07-17 14:41:49 · 191 阅读 · 0 评论