- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 [Leetcode] 33. Search in Rotated Sorted Array
Problem Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). You are given a target value to search. If f...
2018-02-28 23:04:43 149
原创 [Leetcode] 32. Longest Valid Parentheses
Problem: Given a string containing just the characters ‘(’ and ‘)’, find the length of the longest valid (well-formed) parentheses substring. For “(()”, the longest valid parentheses substring is “(...
2018-02-28 17:32:41 148
原创 [Leetcode] 31. Next Permutation
Problem: Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not possible, it must rearrange it as the lowest ...
2018-02-26 23:52:04 130
原创 使用 `cat -e` 命令查看输出不支持的字符
有时候写了脚本,脚本语句没有问题,但是运行的时候却显示脚本语法错误 “syntax error” 可以使用命令cat -e查出一些没显示出来的字符,这些字符通常不被linux支持: 我们可以看到 ^M 字符是正常情况下不会显示出来,但是会影响脚本的运行的。 正常的linux脚本应该是以$结尾的。 ...
2018-02-12 18:11:57 1100
用C++/MFC实现P2P和群聊功能的聊天小软件
2015-03-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人