Problem : 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, gi ...
分类:
其他好文 时间:
2020-02-10 00:20:24
阅读次数:
81
"题目" 用hash,比较两个字符串数组的每个字符的hash值 ...
分类:
其他好文 时间:
2020-02-09 20:36:37
阅读次数:
64
题目如下: Given two equal-size strings s and t. In one step you can choose any character of t and replace it with another character. Return the minimum nu ...
分类:
其他好文 时间:
2020-02-09 18:39:10
阅读次数:
68
Flip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and the other o ...
分类:
其他好文 时间:
2020-02-08 22:02:58
阅读次数:
86
题目如下: Given an array arr. You can choose a set of integers and remove all the occurrences of these integers in the array. Return the minimum size of t ...
分类:
其他好文 时间:
2020-02-08 15:25:57
阅读次数:
69
[TOC] "Leetcode 76" 问题描述 例子 解决方案 ...
【Thymeleaf】使用学习 1、spring boot 整合 Thymeleaf 2、spring security 使用 3、标签使用 1、spring boot 整合 Thymeleaf <dependency> <groupId>org.springframework.boot</grou ...
分类:
其他好文 时间:
2020-02-08 11:49:59
阅读次数:
85
鉴于早上那题让我怀疑单调栈白学,特意来复习下单调栈 题意 考虑按照每个元素对答案的贡献来统计,那么我们只需要找到每个元素左边右边第一个比它小的就可 这题给的又是排列,简直不能再良心 ...
分类:
其他好文 时间:
2020-02-07 00:49:07
阅读次数:
62
Given a string s of '(' , ')' and lowercase English characters. Your task is to remove the minimum number of parentheses ( '(' or ')', in any position ...
分类:
其他好文 时间:
2020-02-06 14:49:15
阅读次数:
69
最小生成树(Minimum Span Tree):对于带权无向连通图。所有节点都连通且总权值最小。应用:电缆布线、网络、电路设计 找V-1条边,连接V个顶点,总权值最小 切分定理(Cut Property):给定任意切分,横切边中权值最小的边必属于最小生成树 切分:把图中节点分为两部分 横切边:边的 ...
分类:
编程语言 时间:
2020-02-05 16:12:21
阅读次数:
109