![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCodeOJ
码喽啰
这个作者很懒,什么都没留下…
展开
-
LeetCode 326. Power of Three
Power of ThreeDes Given an integer, write a function to determine if it is a power of three.分析 这个题开始没理解,以为是求一个数是否是某个数的三次方,导致不过。后来看了网上的才知道是求是否是3的x次方。那么如果一个数是的的肯定就能被3一直整除至到不能再被整除时商是否为1,这就是解题的关键。Cod原创 2016-05-31 21:44:30 · 312 阅读 · 0 评论 -
LeetCode 70. Climbing Stairs
Climbing StairsDes You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?分析 一开始看到这原创 2016-05-31 21:57:22 · 456 阅读 · 0 评论 -
LeetCode 121. Best Time to Buy and Sell Stock
Best Time to Buy and Sell StockDes Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction (ie, buy o原创 2016-05-31 22:05:57 · 400 阅读 · 0 评论 -
LeetCode 345. Reverse Vowels of a String
Reverse Vowels of a StringDes Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Given s = “hello”, return “holle”. Example 2: Given s = “le原创 2016-06-03 14:50:16 · 536 阅读 · 0 评论 -
LeetCode 27. Remove Elemen
Remove ElemenDes 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 with co原创 2016-06-03 15:51:19 · 449 阅读 · 0 评论 -
LeetCode 198. House Robber
Remove ElementDes 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 with c原创 2016-06-03 15:19:11 · 284 阅读 · 0 评论 -
LeetCode 66. Plus One
Plus OneDes Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit is at the head of the list.分析 本题的意思原创 2016-06-03 16:01:33 · 613 阅读 · 0 评论 -
触宝笔试面试回忆版(不完整)-16暑期实习
选择题1、进制转换 15*5=114是进制 不要把15*5理解为10进制,这个的进制和114进制是一样的2、c++ new出来的存在什么地方 堆区3、http协议,TCP与UDP区别,且位于7层模型哪一层 http协议详解,请仔细看此文 TCP与UDP区别 TCP与UDP区别-1 TCP与UDP区别-2 OSI七层与TCP/IP原创 2016-07-12 09:18:46 · 4287 阅读 · 0 评论