摘要: 地址:https://leetcode-cn.com/problems/reverse-string/ <?php /** 编写一个函数,其作用是将输入的字符串反转过来。输入字符串以字符数组 char[] 的形式给出。 不要给另外的数组分配额外的空间,你必须原地修改输入数组、使用 O(1) 的额外空 阅读全文
posted @ 2020-03-24 14:05 花花妹子。 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 地址:https://leetcode-cn.com/problems/tenth-line/ ## 给定一个文本文件 file.txt,请只打印这个文件中的第十行。 示例: 假设 file.txt 有如下内容: Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 L 阅读全文
posted @ 2020-03-24 11:30 花花妹子。 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 地址:https://leetcode-cn.com/problems/classes-more-than-5-students/ ## 请列出所有超过或等于5名学生的课。 示例: 有一个courses 表 ,有: student (学生) 和 class (课程)。 请列出所有超过或等于5名学生的 阅读全文
posted @ 2020-03-24 10:46 花花妹子。 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 地址:https://leetcode-cn.com/problems/big-countries/ ## 编写一个SQL查询,输出表中所有大国家的名称、人口和面积。 示例: 这里有张 World 表 + + + + + + | name | continent | area | populatio 阅读全文
posted @ 2020-03-24 09:29 花花妹子。 阅读(204) 评论(0) 推荐(0) 编辑