思路: 深度遍历 1.第一层main函数里 两层循环找 grid[x][y] == '1' 的点 res += 1 2.递归函数里,把与该点四个方向相邻的,值为‘1’的点全部标0 标0方法: 对坐标(x,y)四个方向中 值 == ‘1’ 的赋0 再递归。 注意: 1. 对于二维数组,判空要用 if ...
分类:
其他好文 时间:
2020-05-13 13:59:47
阅读次数:
47
package LeetCode_64 /** * 64. Minimum Path Sum * https://leetcode.com/problems/minimum-path-sum/description/ * * Given a m x n grid filled with non-ne ...
分类:
其他好文 时间:
2020-05-13 00:38:52
阅读次数:
62
layout: post title: CentOS7 安装配置 Nginx tags: Nginx Linux CentOS categories: install Nginx abbrlink: 4af79843 date: 2020 05 12 12:45:00 上个月准备搭建个人网站的时候选 ...
分类:
其他好文 时间:
2020-05-12 13:37:42
阅读次数:
52
文本的一些属性 android:id="@+id/editText" 给文本的id重命名 android:layout_width="wrap_content" 必要的长宽 android:layout_height="wrap_content" android:ems="10" 本文本框一行的最大 ...
分类:
其他好文 时间:
2020-05-11 23:35:41
阅读次数:
80
//獲取清單 public DataTable getCheckList(DataGrid dgDetail, DataTable lo_DTabList, string row_name) { try { for (int i = 0; i < dgDetail.Items.Count; i++) ...
分类:
其他好文 时间:
2020-05-11 18:54:11
阅读次数:
69
1、常见 CSS 布局方式详见: 一些常见的 CSS 布局方式梳理,涉及 Flex 布局、Grid 布局、圣杯布局、双飞翼布局等。http://cherryblog.site/common... 2、几种 JavaScript 动画库推荐JavaScript 库对设计师和开发人员来说,都是非常有用的 ...
分类:
编程语言 时间:
2020-05-11 01:12:20
阅读次数:
80
1、登录界面 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width= ...
分类:
移动开发 时间:
2020-05-10 17:16:19
阅读次数:
67
<?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" and ...
分类:
其他好文 时间:
2020-05-10 17:11:43
阅读次数:
52
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" ...
分类:
其他好文 时间:
2020-05-10 17:03:12
阅读次数:
54
知识点: 1、在垂直布局中,我们可以指定 layout_weight的大小,来平均分配view占据的屏幕大小,这时候要把height设置为0dp(水平的设置宽度为0) 2、gravity控制子视图的显示位置 <EditText android:layout_width="match_parent" ...
分类:
其他好文 时间:
2020-05-10 16:40:52
阅读次数:
71