flowingfog

偶尔刷题

  博客园  :: 首页  :: 新随笔  :: 联系 ::  :: 管理

2018年11月26日

摘要: 分析 难度 易 来源 https://leetcode.com/problems/valid-phone-numbers/ 题目 Given a text file file.txt that contains list of phone numbers (one per line), write 阅读全文
posted @ 2018-11-26 20:30 flowingfog 阅读(311) 评论(0) 推荐(0) 编辑

摘要: 分析 写bash,不太会啊…… 难度 中 来源 https://leetcode.com/problems/word-frequency/ 题目 Write a bash script to calculate the frequency of each word in a text file wo 阅读全文
posted @ 2018-11-26 16:17 flowingfog 阅读(225) 评论(0) 推荐(0) 编辑

2018年11月25日

摘要: 分析 难度 易 来源 https://leetcode.com/problems/number-of-1-bits/ 题目 Write a function that takes an unsigned integer and returns the number of '1' bits it ha 阅读全文
posted @ 2018-11-25 20:23 flowingfog 阅读(178) 评论(0) 推荐(0) 编辑

摘要: 分析 难度 易 来源 https://leetcode.com/problems/reverse-bits/submissions/ 题目 Reverse bits of a given 32 bits unsigned integer. Example: Follow up: If this fu 阅读全文
posted @ 2018-11-25 20:07 flowingfog 阅读(171) 评论(0) 推荐(0) 编辑

2018年11月18日

摘要: 分析 难度 易 来源 https://leetcode.com/problems/rotate-array/submissions/ 题目 Given an array, rotate the array to the right by k steps, where k is non-negativ 阅读全文
posted @ 2018-11-18 22:36 flowingfog 阅读(137) 评论(0) 推荐(0) 编辑

摘要: 分析 难度 易 来源 https://leetcode.com/problems/customers-who-never-order/ 题目 Suppose that a website contains two tables, the Customers table and the Orders 阅读全文
posted @ 2018-11-18 11:02 flowingfog 阅读(141) 评论(0) 推荐(0) 编辑

2018年11月16日

摘要: 分析 难度 易 来源 https://leetcode.com/problems/combine-two-tables/ SQL LEFT JOIN 关键字 LEFT JOIN 关键字会从左表 (table_name1) 那里返回所有的行,即使在右表 (table_name2) 中没有匹配的行。 L 阅读全文
posted @ 2018-11-16 15:04 flowingfog 阅读(128) 评论(0) 推荐(0) 编辑

摘要: 分析 难度 易 来源 https://leetcode.com/problems/factorial-trailing-zeroes/ 题目 Given an integer n, return the number of trailing zeroes in n!. Example 1: Exam 阅读全文
posted @ 2018-11-16 11:15 flowingfog 阅读(156) 评论(0) 推荐(0) 编辑

2018年11月14日

摘要: 分析 难度 易 来源 https://leetcode.com/problems/excel-sheet-column-number 题目 Given a column title as appear in an Excel sheet, return its corresponding colum 阅读全文
posted @ 2018-11-14 10:37 flowingfog 阅读(175) 评论(0) 推荐(0) 编辑

摘要: 分析 难度 易 来源 https://leetcode.com/problems/majority-element/ JDK里的排序算法,效率就是高啊 题目 Given an array of size n, find the majority element. The majority eleme 阅读全文
posted @ 2018-11-14 10:19 flowingfog 阅读(100) 评论(0) 推荐(0) 编辑