首先介绍一下rectangle函数 1.rectangle函数实际上是一个画矩形的行数,语法调用为: rectangle('Position',[x,y,w,h]),表示的是下哦那个点(x,y)开始画一个宽w高h的矩形。默认情况下是从(0,0)开始画一个宽1高1的矩形。例如直接在命令窗口出入:rec ...
分类:
其他好文 时间:
2019-05-09 21:47:13
阅读次数:
472
ACM,河南省ACM,dfs,小结,dp,线性dp,LIS,排序,floyd,最短路,字符串 ...
分类:
其他好文 时间:
2019-05-02 19:01:03
阅读次数:
139
地址:https://leetcode.com/problems/kth-largest-element-in-an-array/ 描述: Find the kth largest element in an unsorted array. Note that it is the kth large ...
分类:
其他好文 时间:
2019-04-30 23:35:31
阅读次数:
124
circle.m(画二维圆的函数) %该函数是画二维圆圈,输入圆心坐标和半径%rectangle()函数参数‘linewidth’修饰曲线的宽度%'edgecolor','r',edgecolor表示边框颜色,r表示颜色参数%'facecolor','b',facecolor表示内部填充颜色,b表示 ...
分类:
其他好文 时间:
2019-04-26 22:27:33
阅读次数:
1440
原文:WPF自定义仪表盘控件 闲来无事,分享一个仪表盘 源码: 直接复制代码即可运行,=。=! ... ...
题意简述:给$H , W , h, w$。构造一个$H W$的矩阵,满足矩阵元素之和为正数,且每个$h w$的子矩阵元素之和是负数。 感觉是比较简单且比较巧妙的构造题,可惜自己还是太弱,没能做出来。orz wsq 首先考虑第一个样例给出的提示,我们可以在一般位置放1,在满足$i\ \%\ h==0, ...
分类:
其他好文 时间:
2019-04-18 17:23:35
阅读次数:
145
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Inpu ...
分类:
编程语言 时间:
2019-04-17 20:51:31
阅读次数:
232
You need to find the largest value in each row of a binary tree. Example: ...
分类:
其他好文 时间:
2019-04-16 13:07:18
阅读次数:
144
"167. Two Sum II Input array is sorted" 分析:简单题,双指针,如果比target大,则说明j要变小,如果比target小,说明i要变大 "215. Kth Largest Element in an Array" 分析:快排思想,不过递归的时候根据当前位置和k ...
分类:
其他好文 时间:
2019-04-15 21:38:56
阅读次数:
176
410. Split Array Largest Sum Given an array which consists of non-negative integers and an integer m, you can split the array into m non-empty continu ...
分类:
其他好文 时间:
2019-04-13 09:13:00
阅读次数:
162