原创 leetcode之Valid Palindrome
原題如下: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
原创 leetcode之 Longest Substring Without Repeating Characters
原題如下: Given a string, find the length of the longest substring without repeating characters. For example, the longest s
原创 leetcode之First Missing Positive
原題如下: Given an unsorted integer array, find the first missing positive integer. For example, Given [1,2,0] return 3,
原创 leetcode之Recover Binary Search Tree
原題如下: Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its struc
原创 leetcode之Interleaving String
原題如下: Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example, Given:s1 = "aabcc",
原创 leetcode之3Sum
原題如下: Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique tripl
原创 python 的MySQL操作
今天在Linux下操作MySQL,也是各種囧啊,首先記錄下Linux命令操作MySQL: [work@*********.com bin]$ ./mysql -u*** -p*** -P3310 -h*******.com mysql>
原创 leetcode之Two Sum
原題如下: Given an array of integers, find two numbers such that they add up to a specific target number. The function t
原创 linux 常用命令
後臺啓動某項任務:nohup bin/server & 改變當前文件夾下文件的用戶權限:chmod a+x * 查看正在運行的進程的命令:ps -ef |grep .tar文件 解包: tar xvf filename.ta
原创 leetcode之Word Break
原題如下: Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequenc
原创 leetcode之Merge Intervals
原題如下: Given a collection of intervals, merge all overlapping intervals. For example, Given [1,3],[2,6],[8,10],[15,18
原创 leetcode之Evaluate Reverse Polish Notation
原題如下: Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Ea
原创 leetcode之Largest Rectangle in Histogram
原題如下: Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find th
原创 leetcode之Permutation Sequence
原題如下: The set [1,2,3,…,n] contains a total of n! unique permutations. By listing and labeling all of the permutatio
原创 關於Linux定時任務
在Linux下,可以利用crontab命令將自己的腳本做成定時任務,編輯定時任務的命令是:crontab -e ,查看定時任務的命令是:crontab -l,在我設定定時任務的過程中遇到了如下幾個問題: 首先是定時任務的執行問題