LeetCode
文章平均质量分 69
LeetCode编程练习
Microstrong0305
菜鸟程序猿
展开
-
【LeetCode】167. Two Sum II - Input array is sorted
我的个人微信公众号:Microstrong微信公众号ID:MicrostrongAI微信公众号介绍:Microstrong(小强)同学主要研究机器学习、深度学习、计算机视觉、智能对话系统相关内容,分享在学习过程中的读书笔记!期待您的关注,欢迎一起学习交流进步!知乎主页:https://www.zhihu.com/people/MicrostrongAI/activitiesGithub:https://github.com/Microstrong0305个人博客:https://blo.原创 2020-05-19 11:26:54 · 431 阅读 · 0 评论 -
【LeetCode】169. Majority Element
我的个人微信公众号:Microstrong微信公众号ID:MicrostrongAI微信公众号介绍:Microstrong(小强)同学主要研究机器学习、深度学习、计算机视觉、智能对话系统相关内容,分享在学习过程中的读书笔记!期待您的关注,欢迎一起学习交流进步!知乎主页:https://www.zhihu.com/people/MicrostrongAI/activitiesGithub:https://github.com/Microstrong0305个人博客:https://blo.原创 2020-05-18 14:19:49 · 375 阅读 · 0 评论 -
【LeetCode】21. Merge Two Sorted Lists
我的个人微信公众号:Microstrong微信公众号ID:MicrostrongAI微信公众号介绍:Microstrong(小强)同学主要研究机器学习、深度学习、计算机视觉、智能对话系统相关内容,分享在学习过程中的读书笔记!期待您的关注,欢迎一起学习交流进步!知乎主页:https://www.zhihu.com/people/MicrostrongAI/activitiesGithub:https://github.com/Microstrong0305个人博客:https://blo.原创 2020-05-09 11:04:19 · 390 阅读 · 0 评论 -
【LeetCode】15. 3Sum
我的个人微信公众号:Microstrong微信公众号ID:MicrostrongAI微信公众号介绍:Microstrong(小强)同学主要研究机器学习、深度学习、计算机视觉、智能对话系统相关内容,分享在学习过程中的读书笔记!期待您的关注,欢迎一起学习交流进步!知乎主页:https://www.zhihu.com/people/MicrostrongAI/activitiesGit...原创 2020-04-29 23:19:22 · 308 阅读 · 0 评论 -
【LeetCode】19. Remove Nth Node From End of List
我的个人微信公众号:Microstrong微信公众号ID:MicrostrongAI微信公众号介绍:Microstrong(小强)同学主要研究机器学习、深度学习、计算机视觉、智能对话系统相关内容,分享在学习过程中的读书笔记!期待您的关注,欢迎一起学习交流进步!知乎主页:https://www.zhihu.com/people/MicrostrongAI/activitiesGit...原创 2020-04-29 13:25:34 · 283 阅读 · 0 评论 -
【LeetCode】88. Merge Sorted Array
我的个人微信公众号:Microstrong微信公众号ID:MicrostrongAI微信公众号介绍:Microstrong(小强)同学主要研究机器学习、深度学习、计算机视觉、智能对话系统相关内容,分享在学习过程中的读书笔记!期待您的关注,欢迎一起学习交流进步!知乎主页:https://www.zhihu.com/people/MicrostrongAI/activitiesGit...原创 2020-04-17 14:10:03 · 318 阅读 · 1 评论 -
【LeetCode】215. Kth Largest Element in an Array
我的个人微信公众号:Microstrong微信公众号ID:MicrostrongAI微信公众号介绍:Microstrong(小强)同学主要研究机器学习、深度学习、计算机视觉、智能对话系统相关内容,分享在学习过程中的读书笔记!期待您的关注,欢迎一起学习交流进步!知乎主页:https://www.zhihu.com/people/MicrostrongAI/activitiesGit...原创 2020-04-16 15:58:05 · 326 阅读 · 0 评论 -
【LeetCode】704. Binary Search
我的个人微信公众号:Microstrong微信公众号ID:MicrostrongAI微信公众号介绍:Microstrong(小强)同学主要研究机器学习、深度学习、计算机视觉、智能对话系统相关内容,分享在学习过程中的读书笔记!期待您的关注,欢迎一起学习交流进步!知乎主页:https://www.zhihu.com/people/MicrostrongAI/activitiesGit...原创 2020-04-09 13:48:58 · 298 阅读 · 0 评论 -
【LeetCode】206. Reverse Linked List
我的个人微信公众号:Microstrong微信公众号ID:MicrostrongAI微信公众号介绍:Microstrong(小强)同学主要研究机器学习、深度学习、计算机视觉、智能对话系统相关内容,分享在学习过程中的读书笔记!期待您的关注,欢迎一起学习交流进步!知乎主页:https://www.zhihu.com/people/MicrostrongAI/activitiesGit...原创 2020-04-08 11:17:38 · 298 阅读 · 0 评论 -
【LeetCode】912. Sort an Array
我的个人微信公众号:Microstrong微信公众号ID:MicrostrongAI微信公众号介绍:Microstrong(小强)同学主要研究机器学习、深度学习、计算机视觉、智能对话系统相关内容,分享在学习过程中的读书笔记!期待您的关注,欢迎一起学习交流进步!知乎主页:https://www.zhihu.com/people/MicrostrongAI/activitiesGit...原创 2020-04-07 10:56:55 · 323 阅读 · 0 评论 -
【LeetCode】111. Minimum Depth of Binary Tree
我的个人微信公众号:Microstrong微信公众号ID:MicrostrongAI微信公众号介绍:Microstrong(小强)同学主要研究机器学习、深度学习、计算机视觉、智能对话系统相关内容,分享在学习过程中的读书笔记!期待您的关注,欢迎一起学习交流进步!知乎主页:https://www.zhihu.com/people/MicrostrongAI/activitiesGit...原创 2020-04-02 14:24:53 · 272 阅读 · 0 评论 -
【LeetCode】104. Maximum Depth of Binary Tree
我的个人微信公众号:Microstrong微信公众号ID:MicrostrongAI微信公众号介绍:Microstrong(小强)同学主要研究机器学习、深度学习、计算机视觉、智能对话系统相关内容,分享在学习过程中的读书笔记!期待您的关注,欢迎一起学习交流进步!知乎主页:https://www.zhihu.com/people/MicrostrongAI/activitiesGit...原创 2020-04-01 13:57:34 · 365 阅读 · 0 评论 -
【LeetCode】145. Binary Tree Postorder Traversal
我的个人微信公众号:Microstrong微信公众号ID:MicrostrongAI微信公众号介绍:Microstrong(小强)同学主要研究机器学习、深度学习、计算机视觉、智能对话系统相关内容,分享在学习过程中的读书笔记!期待您的关注,欢迎一起学习交流进步!知乎主页:https://www.zhihu.com/people/MicrostrongAI/activitiesGit...原创 2020-03-30 11:34:19 · 303 阅读 · 0 评论 -
【LeetCode】94. Binary Tree Inorder Traversal
我的个人微信公众号:Microstrong微信公众号ID:MicrostrongAI微信公众号介绍:Microstrong(小强)同学主要研究机器学习、深度学习、计算机视觉、智能对话系统相关内容,分享在学习过程中的读书笔记!期待您的关注,欢迎一起学习交流进步!知乎主页:https://www.zhihu.com/people/MicrostrongAI/activitiesGit...原创 2020-03-26 11:21:00 · 243 阅读 · 1 评论 -
【LeetCode】144. Binary Tree Preorder Traversal
我的个人微信公众号:Microstrong微信公众号ID:MicrostrongAI微信公众号介绍:Microstrong(小强)同学主要研究机器学习、深度学习、计算机视觉、智能对话系统相关内容,分享在学习过程中的读书笔记!期待您的关注,欢迎一起学习交流进步!知乎主页:https://www.zhihu.com/people/MicrostrongAI/activitiesGit...原创 2020-03-24 13:45:59 · 255 阅读 · 0 评论 -
【LeetCode】102. Binary Tree Level Order Traversal
我的个人微信公众号:Microstrong微信公众号ID:MicrostrongAI微信公众号介绍:Microstrong(小强)同学主要研究机器学习、深度学习、计算机视觉、智能对话系统相关内容,分享在学习过程中的读书笔记!期待您的关注,欢迎一起学习交流进步!知乎主页:https://www.zhihu.com/people/MicrostrongAI/activitiesGit...原创 2020-03-23 13:52:24 · 220 阅读 · 0 评论 -
【LeetCode】322. Coin Change
322.Coin ChangeDescription:You are given coins of different denominations and a total amount of moneyamount. Write a function to compute the fewest number of coins that you need to make up that ...原创 2020-01-26 23:59:54 · 487 阅读 · 0 评论 -
【LeetCode】72. Edit Distance
微信公众号72.Edit DistanceDescription:Given two wordsword1andword2, find the minimum number of operations required to convertword1toword2.You have the following 3 operations permitted on a ...原创 2019-05-13 22:45:50 · 2732 阅读 · 0 评论 -
【LeetCode】300. Longest Increasing Subsequence
300. Longest Increasing SubsequenceDescription:Given an unsorted array of integers, find the length of longest increasing subsequence.Example:Input: [10,9,2,5,3,7,101,18]Output: 4 Explanati...原创 2019-02-24 15:55:29 · 1272 阅读 · 0 评论 -
【LeetCode】416. Partition Equal Subset Sum
416. Partition Equal Subset SumDescription:Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both su...原创 2019-02-09 17:30:43 · 1279 阅读 · 0 评论 -
【LeetCode】309. Best Time to Buy and Sell Stock with Cooldown
309. Best Time to Buy and Sell Stock with CooldownDescription:Say you have an array for which the element is the price of a given stock on day i.Design an algorithm to find the maximum profit. ...原创 2019-01-10 18:04:18 · 886 阅读 · 0 评论 -
【LeetCode】337. House Robber |||
337. House Robber |||Description:The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each house has one an...原创 2019-01-08 22:16:14 · 811 阅读 · 0 评论 -
【LeetCode】213. House Robber ||
213. House Robber IIDescription:You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are arranged in a c...原创 2019-01-06 15:14:49 · 807 阅读 · 0 评论 -
【LeetCode】63. Unique Paths II
63. Unique Paths IIDescription:A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any point in time....原创 2019-01-01 23:46:07 · 831 阅读 · 0 评论 -
【LeetCode】62. Unique Paths
62. Unique PathsDescription:A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any point in time. Th...原创 2018-12-26 22:54:57 · 898 阅读 · 0 评论 -
【LeetCode】91. Decode Ways
91. Decode WaysDescription:A message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given a non-empty string con...原创 2018-11-21 16:42:49 · 1212 阅读 · 0 评论 -
【LeetCode】279. Perfect Squares
279. Perfect SquaresDescription:Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n.Example 1:Input: n = 12Output: 3...原创 2018-11-16 21:31:16 · 1498 阅读 · 1 评论 -
ACM之LeetCode中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.Example:G原创 2017-01-25 16:31:35 · 549 阅读 · 0 评论 -
ACM之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 re原创 2017-01-27 16:21:43 · 347 阅读 · 0 评论 -
ACM之LeetCode中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原创 2017-02-02 20:27:57 · 399 阅读 · 0 评论 -
ACM之LeetCode中Median of Two Sorted Arrays
原题信息:There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).Example 1:原创 2017-02-04 19:23:52 · 375 阅读 · 0 评论 -
【LeetCode】347. Top K Frequent Elements
Given a non-empty array of integers, return the k most frequent elements.Example 1: Input: nums = [1,1,1,2,2,3], k = 2Output: [1,2]Example 2:Input: nums = [1], k = 1Output: [1]Note:...原创 2018-09-19 14:38:53 · 186 阅读 · 0 评论 -
【LeetCode】70. Climbing Stairs
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?Note: Given n will be a positive...原创 2018-09-21 22:59:59 · 4918 阅读 · 0 评论 -
【LeetCode】198. House Robber
198. House RobberDescription:You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing ea...原创 2018-09-29 11:55:10 · 3286 阅读 · 0 评论 -
【LeetCode-面试-算法】股票的最大盈利值
这个题目遇到两次:联想面试手写代码+码隆科技在线笔试。LeetCode原题:题号:121. Best Time to Buy and Sell Stock链接:https://leetcode.com/problems/best-time-to-buy-and-sell-stock/description/题目描述:给定一个整形数组,其中的第i个元素代表股票第i天的价格。...原创 2018-10-21 21:39:38 · 7708 阅读 · 0 评论 -
【LeetCode】53. Maximum Subarray
我的相关文章:【1】牛客网在线编程专题《剑指offer-面试题31》连续子数组的最大和53.Maximum SubarrayDescription:Given an integer arraynums, find the contiguous subarray(containing at least one number) which has the largest sum...原创 2018-11-01 16:45:36 · 684 阅读 · 0 评论 -
【LeetCode】120. Triangle
120. TriangleDescription:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the following triangle...原创 2018-11-02 22:57:02 · 2935 阅读 · 0 评论 -
【LeetCode】64. Minimum Path Sum
64. Minimum Path SumDescription:Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.Note: You can...原创 2018-11-05 22:57:00 · 2505 阅读 · 0 评论 -
【LeetCode】343. Integer Break
343. Integer BreakDescription:Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum product you can get...原创 2018-11-09 15:20:09 · 2364 阅读 · 0 评论