https://leetcode.com/problems/maximal-square/#/description Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1 ...
分类:
其他好文 时间:
2017-07-22 00:06:35
阅读次数:
203
x1=[1;4]; y1=[0.01;0.8]; p=fittype('(1+a1*(x1-b1)^-2)^-1', 'independent','x1');%定义函数定义自变量 opt=fitoptions(p); opt.StartPoint=[0.1 0.1];%设置初始参数 f1=fit(x... ...
分类:
其他好文 时间:
2017-07-19 21:59:38
阅读次数:
127
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area. 题意:求全由1组成的最大矩形面积。 思路:这题感觉是larges ...
分类:
其他好文 时间:
2017-07-15 16:50:02
阅读次数:
140
BMP文件格式具体解释(BMP file format)BMP文件格式,又称为Bitmap(位图)或是DIB(Device-Independent Device,设备无关位图),是Windows系统中广泛使用的图像文件格式。由于它能够不作不论什么变换地保存图像像素域的数据。因此成为我们取得RAW数据 ...
分类:
其他好文 时间:
2017-07-14 21:16:19
阅读次数:
293
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area. 思路:此题的意思是给一个为0或1的矩阵,求所有为1组成的最大矩阵 ...
分类:
其他好文 时间:
2017-07-03 13:52:32
阅读次数:
105
首先介绍一下概念 devicePixelRatio其实指的是window.devicePixelRatio window.devicePixelRatio是设备上物理像素和设备独立像素(device-independent pixels (dips))的比例。 公式表示就是:window.devic ...
分类:
其他好文 时间:
2017-07-01 22:45:20
阅读次数:
263
BMP格式详解 BMP文件格式详解(BMP file format) BMP文件格式,又称为Bitmap(位图)或是DIB(Device-Independent Device,设备无关位图),是Windows系统中广泛使用的图像文件格式。由于它可以不作任何变换地保存图像像素域的数据,因此成为我们取得 ...
分类:
其他好文 时间:
2017-06-27 20:55:00
阅读次数:
317
1、为了避免程序忙跑跑死了没反应,加上一个看门狗watchdog实时监控着程序,一旦程序没有在规定的时间喂狗,则狗叫使得单片机复位。 2、Independent watchdog(IWDG)内部有时钟源(128kHz),所以即使主时钟挂了watchdog还是能继续工作的。 另外还有个Window w ...
分类:
其他好文 时间:
2017-06-27 13:44:42
阅读次数:
179
Maximal Square Total Accepted: 1312 Total Submissions: 6388 Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1 ...
分类:
其他好文 时间:
2017-06-26 19:08:38
阅读次数:
142
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area. PS:将其化解为柱状图求最大体积的问题。先用动态规划的思路,将矩 ...
分类:
其他好文 时间:
2017-06-23 23:44:45
阅读次数:
160