Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: No ...
分类:
其他好文 时间:
2018-08-25 11:42:25
阅读次数:
145
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of this problem, w ...
分类:
其他好文 时间:
2018-08-24 13:22:31
阅读次数:
118
【题目描述】 In the game of Sudoku, you are given a large 9 × 9 grid divided into smaller 3 × 3 subgrids. For example, Given some of the numbers in the grid ...
分类:
其他好文 时间:
2018-08-23 00:38:52
阅读次数:
396
Given a positive integer num, write a function which returns True if num is a perfect square else False. Note: Do not use any built-in library functio ...
分类:
其他好文 时间:
2018-08-21 15:11:23
阅读次数:
132
Httpd服务器的坑 1. 在/etc/httpd/conf/httpd.conf中的配置信息, 有时注释到的内容仍然会生效 2. 配置Auth时, 允许htpasswd规定的文件中的所有的用户, Require valid uesr, 允许特定的用户Require user user1 user2 ...
分类:
Web程序 时间:
2018-08-20 12:26:04
阅读次数:
213
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-08-19 13:58:11
阅读次数:
130
栈是一种后进先出的线性数据结构 1.栈的应用: (1)撤销--编辑器 (2)程序调用的系统栈--操作系统 (3)括号匹配--编译器(https://leetcode-cn.com/problems/valid-parentheses/description/) 给定一个只包括 '(',')','{' ...
分类:
其他好文 时间:
2018-08-17 00:39:58
阅读次数:
136
今天在使用当前时间进行筛选数据时出现了RuntimeWarning: DateTimeField Coupon.valid_begin_date received a naive datetime (2018-08-16 20:51:40.135425) while time zone suppor ...
分类:
其他好文 时间:
2018-08-16 21:37:08
阅读次数:
1342
一:Nginx防盗链在nginx.conf中的server部分中添加如下代码location~^.+.(gif|jpg|png|swf|flv|rar|zip|doc|pdf|gz|bz2|jpeg|bmp|xls)${valid_referersnoneblockedserver_names.taobao.com.baidu.com.google.com.google.cn.soso.com;/
分类:
Web程序 时间:
2018-08-16 19:59:13
阅读次数:
262