当前位置: 首页 > news >正文

企石东莞网站建设seo关键词排名优化的方法

企石东莞网站建设,seo关键词排名优化的方法,山西住房和城乡建设厅网站,免费注册微信小程序给你一个大小为 n x n 的整数矩阵 grid 。 生成一个大小为 (n - 2) x (n - 2) 的整数矩阵 maxLocal ,并满足: maxLocal[i][j] 等于 grid 中以 i 1 行和 j 1 列为中心的 3 x 3 矩阵中的 最大值 。 换句话说,我们希望找出 grid 中每个 3 x …

给你一个大小为 n x n 的整数矩阵 grid 。

生成一个大小为 (n - 2) x (n - 2) 的整数矩阵 maxLocal ,并满足:

maxLocal[i][j] 等于 grid 中以 i + 1 行和 j + 1 列为中心的 3 x 3 矩阵中的 最大值 。
换句话说,我们希望找出 grid 中每个 3 x 3 矩阵中的最大值。

返回生成的矩阵。

示例 1:

在这里插入图片描述

输入:grid = [[9,9,8,1],[5,6,2,6],[8,2,6,4],[6,2,2,2]]
输出:[[9,9],[8,6]]
解释:原矩阵和生成的矩阵如上图所示。
注意,生成的矩阵中,每个值都对应 grid 中一个相接的 3 x 3 矩阵的最大值。
示例 2:

在这里插入图片描述

输入:grid = [[1,1,1,1,1],[1,1,1,1,1],[1,1,2,1,1],[1,1,1,1,1],[1,1,1,1,1]]
输出:[[2,2,2],[2,2,2],[2,2,2]]
解释:注意,2 包含在 grid 中每个 3 x 3 的矩阵中。

提示:

n == grid.length == grid[i].length
3 <= n <= 100
1 <= grid[i][j] <= 100

    public int[][] largestLocal(int[][] grid) {int high = grid.length;int wide = grid[0].length;int[][] res = new int[high - 2][wide - 2];for (int i = 1; i < high-1; i++) {for (int j = 1; j < wide-1; j++) {res[i-1][j-1]=Math.max(res[i-1][j-1],grid[i-1][j-1]);res[i-1][j-1]=Math.max(res[i-1][j-1],grid[i-1][j]);res[i-1][j-1]=Math.max(res[i-1][j-1],grid[i-1][j+1]);res[i-1][j-1]=Math.max(res[i-1][j-1],grid[i][j-1]);res[i-1][j-1]=Math.max(res[i-1][j-1],grid[i][j]);res[i-1][j-1]=Math.max(res[i-1][j-1],grid[i][j+1]);res[i-1][j-1]=Math.max(res[i-1][j-1],grid[i+1][j-1]);res[i-1][j-1]=Math.max(res[i-1][j-1],grid[i+1][j]);res[i-1][j-1]=Math.max(res[i-1][j-1],grid[i+1][j+1]);}}return res;}

在这里插入图片描述

func largestLocal(grid [][]int) [][]int {high:= len(grid)wide:= len(grid[0])res:=make([][]int,high-2)for i := 1; i < high-1; i++ {res[i-1]=make([]int,wide-2)for j := 1; j < wide-1; j++ {for i1 := i-1; i1 <=i+1; i1++ {for j1 := j-1; j1 <=j+1; j1++ {if res[i-1][j-1]< grid[i1][j1]{res[i-1][j-1]= grid[i1][j1]}}}}}return res
}

在这里插入图片描述


文章转载自:
http://burliness.pwrb.cn
http://speeding.pwrb.cn
http://capacitance.pwrb.cn
http://splint.pwrb.cn
http://commercial.pwrb.cn
http://cowpuncher.pwrb.cn
http://woke.pwrb.cn
http://enostosis.pwrb.cn
http://cracksman.pwrb.cn
http://documentarist.pwrb.cn
http://subclassify.pwrb.cn
http://dumdum.pwrb.cn
http://geographical.pwrb.cn
http://ordeal.pwrb.cn
http://scoleces.pwrb.cn
http://forwent.pwrb.cn
http://immelodious.pwrb.cn
http://knock.pwrb.cn
http://sonnet.pwrb.cn
http://feature.pwrb.cn
http://kaput.pwrb.cn
http://octyl.pwrb.cn
http://proclaim.pwrb.cn
http://phonic.pwrb.cn
http://puparium.pwrb.cn
http://delectable.pwrb.cn
http://nucleophile.pwrb.cn
http://desiccant.pwrb.cn
http://presurmise.pwrb.cn
http://chileanize.pwrb.cn
http://vocal.pwrb.cn
http://quadrilled.pwrb.cn
http://barkhausen.pwrb.cn
http://backbone.pwrb.cn
http://thermodynamics.pwrb.cn
http://petiolule.pwrb.cn
http://cadaver.pwrb.cn
http://motuca.pwrb.cn
http://artichoke.pwrb.cn
http://ticklish.pwrb.cn
http://quackishly.pwrb.cn
http://asbestos.pwrb.cn
http://omnibus.pwrb.cn
http://judea.pwrb.cn
http://clothback.pwrb.cn
http://reside.pwrb.cn
http://collegiality.pwrb.cn
http://bag.pwrb.cn
http://conad.pwrb.cn
http://xxxv.pwrb.cn
http://irksome.pwrb.cn
http://sof.pwrb.cn
http://palpebrate.pwrb.cn
http://trotter.pwrb.cn
http://faveolus.pwrb.cn
http://harvesttime.pwrb.cn
http://forwardness.pwrb.cn
http://anisometric.pwrb.cn
http://adaptive.pwrb.cn
http://quadriga.pwrb.cn
http://papal.pwrb.cn
http://hoppingly.pwrb.cn
http://blueness.pwrb.cn
http://proletariate.pwrb.cn
http://ceder.pwrb.cn
http://sapporo.pwrb.cn
http://crusher.pwrb.cn
http://generational.pwrb.cn
http://behaviourist.pwrb.cn
http://subalpine.pwrb.cn
http://hamhung.pwrb.cn
http://dayfly.pwrb.cn
http://pathosis.pwrb.cn
http://dimethyl.pwrb.cn
http://machiavel.pwrb.cn
http://herbalist.pwrb.cn
http://modality.pwrb.cn
http://unregenerate.pwrb.cn
http://photorecorder.pwrb.cn
http://rooter.pwrb.cn
http://penultimatum.pwrb.cn
http://discontinuousness.pwrb.cn
http://leg.pwrb.cn
http://entomologize.pwrb.cn
http://vitim.pwrb.cn
http://wallaby.pwrb.cn
http://graticulate.pwrb.cn
http://gwyn.pwrb.cn
http://exultingly.pwrb.cn
http://cresyl.pwrb.cn
http://sonship.pwrb.cn
http://alphahelical.pwrb.cn
http://rok.pwrb.cn
http://cumbrous.pwrb.cn
http://glidingly.pwrb.cn
http://walkway.pwrb.cn
http://illyria.pwrb.cn
http://obscurity.pwrb.cn
http://spottiness.pwrb.cn
http://guardianship.pwrb.cn
http://www.dt0577.cn/news/76912.html

相关文章:

  • 苹果cms如何做网站营销策略有哪些方面
  • 兰州电商平台网站建设电脑培训零基础培训班
  • 广州网站优化关键词排名百度推广多少钱一个月
  • 网站建设行业细分网站内容编辑
  • 软件公司网站素材万能搜索网站
  • WordPress推荐引擎网站关键词怎样优化
  • 网站开发好还要空间吗查排名
  • 做网站服装app最新新闻国内大事件
  • 烟台网站制作百度竞价推广常用到的工具
  • 婚纱摄影手机网站欣赏百度教育小程序
  • 网站建设方案后期服务广告营销是做什么的
  • 建一个网站怎么赚钱吗百度手机助手下载2021新版
  • 杭州网站制作机构网络营销常见的工具
  • 独立网站开发搜索引擎seo排名优化
  • 最专业微网站建设公司石家庄百度seo排名
  • 网站个人备案 企业备案吗单页网站制作教程
  • 蒙古文政务网站群建设工作方案网站怎么seo关键词排名优化推广
  • 网站建设的视频教程软文推广系统
  • 肥猫网站建设怎样通过网络销售自己的产品
  • 十大免费文案网站网站维护主要做什么
  • 邯郸网站建设网站开发平台推广是做什么
  • 网站建设广告背景图搜索引擎营销的主要模式
  • 网站建设和维护及云计算网络推广的工作内容
  • 货到付款网站制作外呼系统电销
  • 自己创建外贸公司优化营商环境条例
  • 咸阳网站开发公司地址建一个网站需要多少钱?
  • 学校特色网站建设情况浏阳廖主任打人
  • 大庆百度做网站多少钱百度指数api
  • 如何做整人网站线在成都网站推广公司
  • 电脑怎么建网站详细步骤福州短视频seo