码迷,mamicode.com
首页 >  
搜索关键字:square    ( 2122个结果
拉丁方阵的一些思考
tags: 数学 date: 2019 04 04 15:09 status: public title: 拉丁方阵的一些思考 问题: 拉丁方阵 (英语:Latin square)是一种 $n × n$ 的方阵,在这种 $n × n $的方阵里,恰有$ n $种不同的元素,每一种不同的元素在同一行或 ...
分类:其他好文   时间:2019-11-05 12:01:14    阅读次数:345
LinAlgError: Last 2 dimensions of the array must be square
python 矩阵计算时出现错误 此时如果矩阵不是方阵,就会出现如下错误: 这里值得注意的是:当我们这样使用的时候,程序运行又会很正常: 貌似我们求得了非方阵的逆。 下面我们来验证一下: 仔细一看,这不是单位阵啊,笔者以为,这种方法并不可行,但带着博客严谨性的想法,笔者决定看看方阵的结果。 看到这里 ...
分类:其他好文   时间:2019-11-04 15:34:16    阅读次数:434
221. 最大正方形
题目: 在一个由 0 和 1 组成的二维矩阵内,找到只包含 1 的最大正方形,并返回其面积。 示例: 输入: 1 0 1 0 01 0 1 1 11 1 1 1 11 0 0 1 0 输出: 4 思路: 动态规划,时间复杂度为O(n^2)dp[i][j]表示以点(i, j)为右下角的正方形的最大边长 ...
分类:其他好文   时间:2019-11-03 21:48:41    阅读次数:78
LeetCode 1139. Largest 1-Bordered Square
原题链接在这里:https://leetcode.com/problems/largest-1-bordered-square/ 题目: Given a 2D grid of 0s and 1s, return the number of elements in the largest square ...
分类:其他好文   时间:2019-11-03 10:52:24    阅读次数:99
R 《回归分析与线性统计模型》page141,5.2
rm(list = ls()) library(car) library(MASS) library(openxlsx) A = read.xlsx("data141.xlsx") head(A) fm = lm(y~x1+x2+x3+x4 , data=A ) #判断多重共线性 vif(fm) >... ...
分类:其他好文   时间:2019-11-03 01:42:08    阅读次数:94
聚类------KNN
import numpy as np from math import sqrt import operator as opt def normData(dataSet): maxVals = dataSet.max(axis=0) minVals = dataSet.min(axis=0) ran ...
分类:其他好文   时间:2019-11-02 21:47:24    阅读次数:87
css的一些基础方法
1.css样式表分别有: 内联样式表 外部样式表 2.css选择符 3.css选择符 通配符 例: *(号选择所有) id选择符: 例: <div id="这个就是id选择符是写在标签里面的"></div>(id=“里面的可以随便写比如a/b/s/xdv/sv/等但必须要写在双引号里面才可以”) c ...
分类:Web程序   时间:2019-11-02 15:47:59    阅读次数:113
oj T1
Theatre Square Description: Theatre Square in the capital city of Berland has a rectangular shape with the size n?×?m meters. On the occasion of the c ...
分类:其他好文   时间:2019-11-02 09:42:28    阅读次数:93
三大图表库:ECharts 、 BizCharts 和 G2,该如何选择?
最近阿里正式开源的BizCharts图表库基于React技术栈,各个图表项皆采用了组件的形式,贴近React的使用特点。同时BizCharts基于G2进行封装,Bizcharts也继承了G2相关特性。公司目前统一使用的是ECharts图表库,下文将对3种图表库进行分析比对。 BizCharts 文档 ...
分类:其他好文   时间:2019-11-01 18:14:13    阅读次数:77
Square Difference
Alice has a lovely piece of cloth. It has the shape of a square with a side of length aa centimeters. Bob also wants such piece of cloth. He would pre ...
分类:其他好文   时间:2019-10-28 21:21:27    阅读次数:104
2122条   上一页 1 ... 19 20 21 22 23 ... 213 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!