题意:求一个字符串的最长不含重复字符的子字符串长度; 示例: input:pwwkw output:2 intput:dvdf output:3 分析:还是那句话,每分析一个问题的时候都要问自己,自己的大脑是如何找出正确答案的,将自己的分析转化为代码此题便解 题目要求不含重复字符,且是子字符串; 1 ...
分类:
其他好文 时间:
2018-11-28 00:29:14
阅读次数:
190
题意: 经典的递归题, 要求:除了要求 横竖都填满 1~9外, 每个3*3也都要求满足 1~9 36. 数组可以部分填充, 问是否一个有效的 sudoku. 写了个好烧脑的 四重循环来check 3*3 的部分。 重点在于 用数组作为hash 。 然后对于 check 3*3 部分, 其实就是9个小 ...
分类:
其他好文 时间:
2018-11-25 12:03:08
阅读次数:
224
去掉登陆时是否订阅通知修改文件 /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js 搜索关键字 “You do not have a valid subscription for this server. Please visit w ...
分类:
其他好文 时间:
2018-11-24 23:52:55
阅读次数:
984
Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only ...
分类:
其他好文 时间:
2018-11-24 14:45:43
阅读次数:
125
Difficulty:easy More:【目录】LeetCode Java实现 Description Given a string, determine if it is a palindrome, considering only alphanumeric characters and ign ...
分类:
其他好文 时间:
2018-11-24 14:34:48
阅读次数:
124
1. Question: 611. Valid Triangle Number https://leetcode.com/problems/valid-triangle-number/ Given an array consists of non-negative integers, your ta ...
分类:
其他好文 时间:
2018-11-22 23:57:15
阅读次数:
305
svn默认端口是3690 svn启动命令详解 svn启动命令详解 svnserve --help usage: svnserve [-d | -i | -t | -X] [options] Valid options: -d [--daemon] : daemon mode #在后台运行 -i [- ...
分类:
其他好文 时间:
2018-11-22 13:21:59
阅读次数:
649
Given a string containing just the characters '(', ')', '{', '}','[' and ']', determine if the input string is valid. An input string is valid if: Not ...
分类:
其他好文 时间:
2018-11-21 12:18:33
阅读次数:
151
Given an array A of integers, return true if and only if it is a valid mountain array. Recall that A is a mountain array if and only if: A.length >= 3 ...
分类:
其他好文 时间:
2018-11-18 13:08:05
阅读次数:
202