码迷,mamicode.com
首页 >  
搜索关键字:find    ( 24186个结果
binary-search
For a given sorted array (ascending order) and a target number, find the first index of this number in O(log n) time complexity. If the target number ...
分类:其他好文   时间:2016-12-04 00:46:50    阅读次数:200
Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:其他好文   时间:2016-12-04 00:13:41    阅读次数:187
BS4(BeautifulSoup4)的使用--find_all()篇
可以直接参考 BS4文档:https://www.crummy.com/software/BeautifulSoup/bs4/doc/index.zh.html#find-all 注意的是: 1.有些tag属性在搜索不能使用,比如HTML5中的 data-* 属性: data_soup = Beau ...
分类:其他好文   时间:2016-12-03 20:48:36    阅读次数:535
selenium自学笔记---下拉框定位元素select
下拉框1.先定位select 然后在定位option city = driver.find_element_by_id("selCities_0") city.find_element_by_xpath("//option[@value='50']").click() 或者 driver.find_ ...
分类:其他好文   时间:2016-12-03 15:32:38    阅读次数:1600
Leetcode: Find All Anagrams in a String
Time Complexity will be O(n) because the "start" and "end" points will only move from left to right once. Sliding Window: Use a count to denote the di ...
分类:其他好文   时间:2016-12-03 15:20:38    阅读次数:171
Selenium2+python自动化15-select下拉框
前言 最近由于工作原因,更新慢了一点,今天终于抽出一点时间给大家继续更新selenium系列,学习的脚本不能停止,希望小伙伴能多多支持。 本篇以百度设置下拉选项框为案例,详细介绍select下拉框相关的操作方法。 一、认识select 1.打开百度-设置-搜索设置界面,如下图所示 2.箭头所指位置, ...
分类:编程语言   时间:2016-12-03 15:19:05    阅读次数:221
Selenium2+python自动化11-定位一组元素find_elements
前言 前面的几篇都是讲如何定位一个元素,有时候一个页面上有多个对象需要操作,如果一个个去定位的话,比较繁琐,这时候就可以定位一组对象。 webdriver 提供了定位一组元素的方法,跟前面八种定位方式其实一样,只是前面是单数,这里是复数形式:find_elements 本篇拿百度搜索作为案例,从搜索 ...
分类:编程语言   时间:2016-12-03 14:48:23    阅读次数:163
kuangbin专题总结一 简单搜索
A - 棋盘问题:在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 解题思路:DFS,在这里有两个搜索方向,同时对每个位置的描述由xy坐标完成,第一 ...
分类:其他好文   时间:2016-12-03 14:43:34    阅读次数:211
Leetcode 416. Partition Equal Subset Sum
Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both ...
分类:其他好文   时间:2016-12-03 07:56:10    阅读次数:201
41. First Missing Positive
Given an unsorted integer array, find the first missing positive integer. For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2. Your algorithm s ...
分类:其他好文   时间:2016-12-03 07:55:35    阅读次数:115
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!