Zhenly

Blog Time


  • 首页

  • 归档

  • 分类

  • 标签

  • 关于

  • 搜索

⚔ LeetCode | 85. Maximal Rectangle

发表于 2018-10-17 | 更新于 2020-05-16 | 分类于 LeetCode

Problem

LeetCode 85. Maximal Rectangle

Difficulty : Hard

Given a 2D binary matrix filled with 0’s and 1’s, find the largest rectangle containing only 1’s and return its area.

Example :

1
2
3
4
5
6
7
8
Input:
[
["1","0","1","0","0"],
["1","0","1","1","1"],
["1","1","1","1","1"],
["1","0","0","1","0"]
]
Output: 6
阅读全文 »

🎨 CV | 过渡效果和中位切割算法

发表于 2018-10-14 | 更新于 2020-05-16 | 分类于 CV

这里使用 Golang 中的GoCV来实现图片的过渡效果以及生成 8 位颜色图片的中位切割算法

🚀 代码: Github

阅读全文 »

⚔ LeetCode | 84. Largest Rectangle in Histogram

发表于 2018-10-08 | 更新于 2020-05-16 | 分类于 LeetCode

Problem

LeetCode 84. Largest Rectangle in Histogram

Difficulty : Hard

Given n non-negative integers representing the histogram’s bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.

img
Above is a histogram where width of each bar is 1, given height = [2,1,5,6,2,3].

img
The largest rectangle is shown in the shaded area, which has area = 10 unit.

阅读全文 »

⚔ LeetCode | 135. Candy

发表于 2018-10-04 | 更新于 2020-05-16 | 分类于 LeetCode

Problem

LeetCode 135. Candy

Difficulty : Hard

There are N children standing in a line. Each child is assigned a rating value.

You are giving candies to these children subjected to the following requirements:

  • Each child must have at least one candy.
  • Children with a higher rating get more candies than their neighbors.

What is the minimum candies you must give?

阅读全文 »

⚔ LeetCode | 32. Longest Valid Parentheses

发表于 2018-09-24 | 更新于 2020-05-16 | 分类于 LeetCode

Problem

LeetCode 32. Longest Valid Parentheses

Difficulty : Hard

Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.

阅读全文 »

🐀 Go | Golang 入门

发表于 2018-09-21 | 更新于 2020-05-16 | 分类于 Golang

虽然已经用了大半年的 Go,但是这个学期有一门课程又要用到 Go,那么就再来从头开始学一次Golang吧,安装运行一条龙。

阅读全文 »

📱 Android | 基础的事件处理(DataBinding的使用)

发表于 2018-09-21 | 更新于 2020-05-16 | 分类于 Android

入门Android应用开发,第二步当然是要处理一些基本事件啦。📱

阅读全文 »

⚔ LeetCode | 23. Merge K Sorted Lists

发表于 2018-09-20 | 更新于 2020-05-16 | 分类于 LeetCode

Problem

LeetCode 23. Merge k Sorted Lists

Difficulty : Hard

Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.

阅读全文 »
上一页1…567…11下一页
ZhenlyChen

ZhenlyChen

梦里看风起了,静听候鸟歌谣

81 日志
18 分类
69 标签
RSS
GitHub E-Mail
Links
  • XMatrix Studio
  • 冰镇
© 2016 – 2020 ZhenlyChen
由 Hexo 强力驱动
|
主题 – NexT.Mist
粤ICP备16109955号-1
0%