链接:https://leetcode cn.com/problems/ba shu zi fan yi cheng zi fu chuan lcof/submissions/ 代码 ...
分类:
其他好文 时间:
2020-03-06 14:57:57
阅读次数:
74
给定一个整数数组 ,找出一个序列中乘积最大的连续子序列(该序列至少包含一个数)。 示例 1: 示例 2: https://leetcode cn.com/problems/maximum product subarray/ 动态规划 其实这道题最直接的方法就是用 DP 来做,而且要用两个 dp 数组 ...
分类:
其他好文 时间:
2020-03-06 13:34:45
阅读次数:
59
给定不同面额的硬币 coins 和一个总金额 amount。编写一个函数来计算可以凑成总金额所需的最少的硬币个数。如果没有任何一种硬币组合能组成总金额,返回 -1。 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/coin-change著作权归领 ...
分类:
其他好文 时间:
2020-03-06 12:57:23
阅读次数:
47
题目:1367. 二叉树中的列表 链接:https://leetcode-cn.com/problems/linked-list-in-binary-tree/ 题意:略 思路:两种思路太久没有做算法题了。对这类题目不敏感,想当然以为是dp做法,其实就是dfs或者bfs。 dfs做法:从最开始进行思 ...
分类:
其他好文 时间:
2020-03-06 12:47:11
阅读次数:
43
此博客链接:https://www.cnblogs.com/ping2yingshi/p/12419542.html 1.分糖果(力扣57min) 题目链接:https://leetcode-cn.com/problems/distribute-candies-to-people/submissio ...
分类:
其他好文 时间:
2020-03-05 13:37:16
阅读次数:
69
Referenced file contains errors (http://www.springframework.org/schema/context/spring-context-3.1.xsd). For more information, right click on the messa ...
分类:
其他好文 时间:
2020-03-05 13:32:20
阅读次数:
110
题目地址https://pintia.cn/problem-sets/1222362023341477888/problems/1222362900697600012 本来我觉得挺简单的 但是怎么也不对 于是 计算机原理 (又一个知识盲区) 我觉得我基础知识没学好 就是这个 无符号整型才能表达32位 ...
分类:
其他好文 时间:
2020-03-05 01:33:34
阅读次数:
332
LeetCode 0079. Word Search单词搜索【Medium】【Python】【DFS】 Problem "LeetCode" Given a 2D board and a word, find if the word exists in the grid. The word can ...
分类:
编程语言 时间:
2020-03-04 23:00:46
阅读次数:
68
练习地址:https://leetcode-cn.com/problems/combine-two-tables/ 表1: Person + + + | 列名 | 类型 | + + + | PersonId | int | | FirstName | varchar | | LastName | v ...
分类:
编程语言 时间:
2020-03-04 19:14:25
阅读次数:
85
题目原网址 https://pintia.cn/problem sets/1222362023341477888/problems/1222362900697600007 第一次做的时候我的想法(想的太简单了嘤嘤嘤) 就是让光棍那个数一直增大,然后来除那个输入的数字,当可以整除的时候 ,输出光棍数/ ...
分类:
其他好文 时间:
2020-03-04 19:13:03
阅读次数:
86