BFS 类问题 1 Surrounded Regions public void surroundedRegions(char[][] board) { int n = board.length; if (n == 0) { return; } int m = board[0].length; fo ...
分类:
其他好文 时间:
2017-10-31 12:59:36
阅读次数:
211
完成登录与注册页面的HTML+CSS+JS,其中的输入项检查包括: 用户名6-12位 首字母不能是数字 只能包含字母和数字 密码6-12位 注册页两次密码是否一致 js css ...
分类:
其他好文 时间:
2017-10-31 10:55:33
阅读次数:
198
原题链接在这里:https://leetcode.com/problems/task-scheduler/description/ 题目: Given a char array representing tasks CPU need to do. It contains capital letter ...
分类:
其他好文 时间:
2017-10-29 17:37:15
阅读次数:
223
Given a non-empty string containing an out-of-order English representation of digits 0-9, output the digits in ascending order. Note: Example 1: Examp ...
分类:
其他好文 时间:
2017-10-28 21:09:56
阅读次数:
216
1. 在 Eclipse 中 项目添加到 Tomcat 里面可以运行,也可以访问项目,但是Tomcat 输入 localhost:8080 确启动不了,单独启动Tomcat 也启动不了。执行Tomcat bin 目录下的 startup.bat报错如下 用记事本打开startup.bat文件,可以在 ...
分类:
其他好文 时间:
2017-10-26 23:05:53
阅读次数:
200
Linux系统中提供了系统调用函数open()和close()用于打开和关闭一个存在的文件 int open(const char *pathname,int flags) int open(const char *pathname,int flags,mode_t mode) int open(c ...
分类:
系统相关 时间:
2017-10-25 00:55:40
阅读次数:
283
if 单格式与嵌套 多分支格式 case while /until 下面将这个程序再改动一下 for 枚举用法 文件用法 累加格式 其他循环控制语句 break 命令不执行当前循环体内break下面的语句从当前循环退出. continue 命令是程序在本循体内忽略下面的语句,从循环头开始执行. 判断 ...
分类:
系统相关 时间:
2017-10-25 00:33:14
阅读次数:
235
Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. This ...
分类:
其他好文 时间:
2017-10-23 21:41:02
阅读次数:
144
Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at ...
分类:
其他好文 时间:
2017-10-23 21:40:38
阅读次数:
157
Given a string and an integer k, you need to reverse the first k characters for every 2k characters counting from the start of the string. If there ar ...
分类:
其他好文 时间:
2017-10-22 22:20:11
阅读次数:
196