![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
文章平均质量分 62
Jojozzc
这个作者很懒,什么都没留下…
展开
-
【LeetCode】算法题1 twoSum的归纳
原题链接 题目: 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原创 2017-09-24 09:08:55 · 313 阅读 · 0 评论 -
【LeetCode】算法题2 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 numbe原创 2017-09-24 16:24:03 · 233 阅读 · 0 评论 -
【Leetcode】算法题50 Pow(x,n)
题目: 50. Pow(x, n) Implement pow(x, n). 题目描述:实现x的n次方 一开始用蛮力法计算,提交代码以后系统判断计算超时,所以采用分治的思想,先计算x的n/2次方,再将结果求平方即可,调试过程中主要问题就是精度问题,当x为分数、且n较大时,结果可能为0,在求解问题中可能出现0做分分母的情况,如果改为乘法 则可以解决这个问题(以下代原创 2017-09-27 14:46:31 · 274 阅读 · 0 评论 -
【Leetcode】算法题26 Remove Duplicates from Sorted Array
题目: 原题链接:Remove Duplicates from Sorted Array Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space原创 2017-09-28 21:00:47 · 175 阅读 · 0 评论 -
【LeetCode】算法题66 Plus One
题目:Plus One Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not contain any leading zero, except the number原创 2017-09-29 12:12:32 · 255 阅读 · 0 评论 -
【LeetCode】算法题 27 Remove Element
题目:Remove Element Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, you must do this in place wi原创 2017-09-29 16:10:37 · 209 阅读 · 0 评论