leetcode
天秤焕妍
这个作者很懒,什么都没留下…
展开
-
bash词频统计:leetcode 192. Word Frequency
leetcode链接:https://leetcode.com/problems/word-frequency/ cat words.txt|tr -cs "[a-z][A-Z]" "\n"|sort|uniq -c|sort -k 1 -r|awk {'print $2,$1'} 步骤详解:cat:读取文本|:管道tr:将每个词按行显示sort:排序uniq:...原创 2018-12-06 16:25:44 · 138 阅读 · 0 评论 -
sql第N工资问题: leetcode 177. Nth Highest Salary
leetcode链接:https://leetcode.com/problems/nth-highest-salary/mysql解法:CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INTBEGIN RETURN ( # Write your MySQL query statement below. se...原创 2018-12-06 17:09:57 · 207 阅读 · 0 评论