码迷,mamicode.com
首页 >  
搜索关键字:square    ( 2122个结果
【leetcode】1301. Number of Paths with Max Score
题目如下: You are given a square board of characters. You can move on the board starting at the bottom right square marked with the character 'S'. You nee ...
分类:其他好文   时间:2019-12-29 10:57:18    阅读次数:68
算法:拉丁方阵(Latin Square)
拉丁方阵(英语:Latin square)是一种 n × n 的方阵,在这种 n × n 的方阵里,恰有 n 种不同的元素,每一种不同的元素在同一行或同一列里只出现一次。以下是两个拉丁方阵举例: 拉丁方阵有此名称是因为瑞士数学家和物理学家欧拉使用拉丁字母来做为拉丁方阵里的元素的符号。 算法步骤: 在 ...
分类:编程语言   时间:2019-12-28 16:21:57    阅读次数:354
CF1187F Expected Square Beauty
Expected Square Beauty 有一个长度为 n 的数列,第 i 个数的取值范围为 $[l_i,r_i]$ ,定义一个数列的价值为这个数列极长连续相同段的个数,求一个数列价值的平方期望,对 $10^9+7$ 取模 。 n≤200000 。 题解 https://codeforces.c ...
分类:其他好文   时间:2019-12-27 23:38:51    阅读次数:82
[LC] 221. Maximal Square
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. Example: Input: 1 0 1 0 0 1 0 1 1 1 ...
分类:其他好文   时间:2019-12-27 13:47:34    阅读次数:76
python map、join函数
map() 会根据提供的函数对指定序列做映射。 第一个参数 function 以参数序列中的每一个元素调用 function 函数,返回包含每次 function 函数返回值的新列表。 其中 function -- 函数,有两个参数 iterable -- 一个或多个序列 >>>def square ...
分类:编程语言   时间:2019-12-26 19:43:45    阅读次数:159
Html
HTML网页基本结构 <html> <head> <title>我的第一个网页</title> </head> <body> 我的第一个网页 </body> </html> <body></body>等成对的标签,分别叫做开放标签和闭合标签。单独呈现的标签(空元素),如<hr/>;意为用 / 来关闭 ...
分类:Web程序   时间:2019-12-24 13:33:28    阅读次数:97
信号的有效值(RMS)估计
% Root Mean Square Value function [retval] = rms1(sig) N = 20; for k = 1 : length(sig)/N - 1 sig_sum = sum(sig((k-1)*N+1 : k*N)); squ_sum = sum(sig((k... ...
分类:其他好文   时间:2019-12-22 14:27:21    阅读次数:262
Word Squares
Description Given a set of words without duplicates, find all word squares you can build from them. A sequence of words forms a valid word square if t ...
分类:其他好文   时间:2019-12-22 00:37:08    阅读次数:86
Maximal Square
Description Description Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. Example Exam ...
分类:其他好文   时间:2019-12-21 22:34:38    阅读次数:87
Maximal Square II
Description Description Given a 2D binary matrix filled with 0's and 1's, find the largest square which diagonal is all 1 and others is 0. Only consid ...
分类:其他好文   时间:2019-12-21 22:24:34    阅读次数:67
2122条   上一页 1 ... 14 15 16 17 18 ... 213 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!