上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: 公众号:爱写bug(ID:icodebugs) 翻转字符串里的单词 Given an input string, reverse the string word by word. 示例 1: 示例 2: 示例 3: 说明: 无空格字符构成一个单词。 输入字符串可以在前面或者后面包含多余的空格,但是反 阅读全文
posted @ 2019-07-11 12:43 爱写Bug 阅读(703) 评论(0) 推荐(0) 编辑
摘要: 公众号: 爱写bug(ID:icodebugs) 作者:爱写bug 给定一个含有 n 个正整数的数组和一个正整数 s , 找出该数组中满足其和 ≥ s 的长度最小的连续子数组 。 如果不存在符合条件的连续子数组,返回 0。 Given an array of n positive integers 阅读全文
posted @ 2019-07-10 13:25 爱写Bug 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 公众号:爱写bug(ID:icodebugs) 给定一个数组,将数组中的元素向右移动 k 个位置,其中 k 是非负数。 Given an array, rotate the array to the right by k steps, where k is non negative. 示例 1: 示 阅读全文
posted @ 2019-07-09 12:37 爱写Bug 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 爱写bug(ID:icodebugs) 作者:爱写bug 实现 "strStr()" 函数。 给定一个 haystack 字符串和一个 needle 字符串,在 haystack 字符串中找出 needle 字符串出现的第一个位置 (从0开始)。如果不存在,则返回 1 。 Implement "st 阅读全文
posted @ 2019-07-08 19:48 爱写Bug 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 公众号:爱写bug(ID:iCodeBugs) 前言: 周末了,围观几个知乎福利话题: "女生身材好是什么体验?" : "https://www.zhihu.com/question/328457531" "拥有一双大长腿是怎样的体验?" : "https://www.zhihu.com/quest 阅读全文
posted @ 2019-07-08 00:02 爱写Bug 阅读(1588) 评论(0) 推荐(0) 编辑
摘要: 公众号:爱写bug(ID:icodebugs) 作者:爱写bug 给定一个非负索引 k ,其中 k ≤ 33,返回杨辉三角的第 k 行。 Given a non negative index k where k ≤ 33, return the k th index row of the Pasca 阅读全文
posted @ 2019-07-07 10:18 爱写Bug 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 公众号: 爱写bug(ID:icodebugs) 给定一个已按照 升序排列 的有序数组,找到两个数使得它们相加之和等于目标数。 函数应该返回这两个下标值 index1 和 index2,其中 index1 必须小于 index2 。 说明: 返回的下标值(index1 和 index2)不是从零开始 阅读全文
posted @ 2019-07-06 14:54 爱写Bug 阅读(126) 评论(0) 推荐(0) 编辑
摘要: [TOC] 爱写bug(ID:icodebugs) 作者:爱写bug 前言: ​ 看了很多网站,只发现获取拉勾网招聘信息是只用post方式就可以得到,应当是非常简单了。推荐刚接触数据分析和爬虫的朋友试一下。 在python3.7、acaconda3环境下运行通过 数据爬取篇: 1、伪造浏览器访问拉勾 阅读全文
posted @ 2019-07-05 12:22 爱写Bug 阅读(1053) 评论(2) 推荐(1) 编辑
摘要: 算法是一个程序的灵魂 公众号:爱写bug(ID:icodebugs) 作者:爱写bug 给定一个含有 n 个正整数的数组和一个正整数 s , 找出该数组中满足其和 ≥ s 的长度最小的连续子数组 。 如果不存在符合条件的连续子数组,返回 0。 Given an array of n positive 阅读全文
posted @ 2019-07-04 14:35 爱写Bug 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 文章全部来自公众号:爱写bug 算法是一个程序的灵魂。 Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., 阅读全文
posted @ 2019-07-03 19:39 爱写Bug 阅读(150) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 下一页