随笔分类 - LeetCode
摘要:1.Reverse String Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". 1. 可以直接用Str
        阅读全文
                
摘要: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 wo
        阅读全文
                
摘要:45. Single Number 在个数都为2的数组中找到个数为1的数 46. Missing Number 在数组中找到从0到n缺失的数字 47. Find the Difference 找两个字符串总t中多出来的那个字符 48. Linked List Cycle 判断一个链表是否有环 49.
        阅读全文
                
摘要:35. Same Tree 判断两棵树相同 36. Invert Binary Tree 翻转树 37. Symmetric Tree 判断树是不是镜像对称的 38. Maximum Depth of Binary Tree 最大深度 39. Minimum Depth of Binary Tree
        阅读全文
                
摘要:28. Best Time to Buy and Sell Stock 买卖股票的最好时间 29. Best Time to Buy and Sell Stock II 买卖股票2(多次买入,一次卖出)最大利润 30. Length of Last Word 最后一个单词的长度 31. Plus O
        阅读全文
                
摘要:感觉还好,坚持住就行,毕竟智商不够 1. Length of Last Word求一个数组的最后一个单词的长度 2. Plus One 大数加1 3. Add Binary 二进制加法 4. Sqrt(x) 求一个数的开方 5. Valid Perfect Square 求正方形的边的长度 6. S
        阅读全文
                
 
                    
                
 浙公网安备 33010602011771号
浙公网安备 33010602011771号