当前位置: 首页 > news >正文

wordpress上传不了百度seo排名优化价格

wordpress上传不了,百度seo排名优化价格,食品科技学校网站模板,个人建什么样的网站leetcode 392 判断子序列 给定字符串 s 和 t ,判断 s 是否为 t 的子序列。 字符串的一个子序列是原始字符串删除一些(也可以不删除)字符而不改变剩余字符相对位置形成的新字符串。(例如,"ace"是"abcd…

leetcode 392 判断子序列

给定字符串 s 和 t ,判断 s 是否为 t 的子序列。

字符串的一个子序列是原始字符串删除一些(也可以不删除)字符而不改变剩余字符相对位置形成的新字符串。(例如,"ace""abcde"的一个子序列,而"aec"不是)。

输入:s = "abc", t = "ahbgdc"
输出:true
class Solution(object):def isSubsequence(self, s, t):""":type s: str:type t: str:rtype: bool"""sflag = 0tflag = 0while 1:if tflag > len(t) - 1 or sflag > len(s) - 1:breakif s[sflag] == t[tflag]:sflag += 1tflag += 1else:tflag += 1if sflag == len(s):return Trueelse:return False

 

 leetcode 11 盛水最多的容器

给定一个长度为 n 的整数数组 height 。有 n 条垂线,第 i 条线的两个端点是 (i, 0) 和 (i, height[i]) 。

找出其中的两条线,使得它们与 x 轴共同构成的容器可以容纳最多的水。

返回容器可以储存的最大水量。

说明:你不能倾斜容器。

 

输入:[1,8,6,2,5,4,8,3,7]
输出:49 
解释:图中垂直线代表输入数组 [1,8,6,2,5,4,8,3,7]。在此情况下,容器能够容纳水(表示为蓝色部分)的最大值为 49。

其实就是短的那条线与两条线距离围成的长方形面积

双指针,由数组两端向中间移动

不管移动长板还是短板,宽一定减小,而高度由短板决定

所以移动短板:宽减小,高有可能增大,面积有可能增大

移动长板:宽减小,高一定减小,面积一定减小(下一个板更长,高仍然不变;下一个板更短,高就更短)

所以每次移动短板 

class Solution(object):def maxArea(self, height):""":type height: List[int]:rtype: int"""left = 0right = len(height) - 1maxArea = 0while left < right:maxArea = max(maxArea, min(height[left], height[right])*(right - left))if height[left] > height[right]:right -= 1else:left += 1return maxArea

leetcode 75 K和数对的最大数目

给你一个整数数组 nums 和一个整数 k 。

每一步操作中,你需要从数组中选出和为 k 的两个整数,并将它们移出数组。

返回你可以对数组执行的最大操作数。

输入:nums = [1,2,3,4], k = 5
输出:2
解释:开始时 nums = [1,2,3,4]:
- 移出 1 和 4 ,之后 nums = [2,3]
- 移出 2 和 3 ,之后 nums = []
不再有和为 5 的数对,因此最多执行 2 次操作。
class Solution(object):def maxOperations(self, nums, k):""":type nums: List[int]:type k: int:rtype: int"""numsSort = sorted(nums)left = 0right = len(nums) - 1maxOperations = 0while left < right:currentSum = numsSort[left]+numsSort[right]if currentSum > k:right -= 1if currentSum < k:left += 1if currentSum == k:maxOperations += 1right -= 1left += 1return maxOperations

 

 时间太久,算了就这样,摆烂了


文章转载自:
http://dinncoprecalculus.zfyr.cn
http://dinncomonteith.zfyr.cn
http://dinncosurprize.zfyr.cn
http://dinncocrier.zfyr.cn
http://dinncodeckhouse.zfyr.cn
http://dinncoradiotherapy.zfyr.cn
http://dinncoangora.zfyr.cn
http://dinncountruthful.zfyr.cn
http://dinncoactivator.zfyr.cn
http://dinncolepidolite.zfyr.cn
http://dinncomalihini.zfyr.cn
http://dinncotheorematic.zfyr.cn
http://dinncovelours.zfyr.cn
http://dinncoconscience.zfyr.cn
http://dinncovocable.zfyr.cn
http://dinncoprobabilism.zfyr.cn
http://dinncohelpful.zfyr.cn
http://dinnconidering.zfyr.cn
http://dinncobefit.zfyr.cn
http://dinnconostology.zfyr.cn
http://dinncogodlike.zfyr.cn
http://dinncophilopoena.zfyr.cn
http://dinncodilute.zfyr.cn
http://dinncoilp.zfyr.cn
http://dinncocystocele.zfyr.cn
http://dinncocaravansarai.zfyr.cn
http://dinncomodulo.zfyr.cn
http://dinncofennec.zfyr.cn
http://dinncoantimask.zfyr.cn
http://dinncoasiadollar.zfyr.cn
http://dinncosomniferous.zfyr.cn
http://dinncotoken.zfyr.cn
http://dinncoflatworm.zfyr.cn
http://dinncosoarable.zfyr.cn
http://dinncopectoral.zfyr.cn
http://dinncodiskdupe.zfyr.cn
http://dinncosnipping.zfyr.cn
http://dinncoebonite.zfyr.cn
http://dinncohesitating.zfyr.cn
http://dinncodesirability.zfyr.cn
http://dinncogarnish.zfyr.cn
http://dinncoexhaustibility.zfyr.cn
http://dinncomatelot.zfyr.cn
http://dinnconephric.zfyr.cn
http://dinncoforeigner.zfyr.cn
http://dinncoattached.zfyr.cn
http://dinncoaaui.zfyr.cn
http://dinncozoster.zfyr.cn
http://dinncoberwick.zfyr.cn
http://dinncodiscount.zfyr.cn
http://dinncosporoduct.zfyr.cn
http://dinncoprocrustean.zfyr.cn
http://dinnconeurohypophyseal.zfyr.cn
http://dinncoscivvy.zfyr.cn
http://dinncounwanted.zfyr.cn
http://dinncodeborah.zfyr.cn
http://dinncosuitably.zfyr.cn
http://dinncoqos.zfyr.cn
http://dinncogoondie.zfyr.cn
http://dinncoacropathy.zfyr.cn
http://dinncowashingtonite.zfyr.cn
http://dinncoanaclinal.zfyr.cn
http://dinncosaratov.zfyr.cn
http://dinncourus.zfyr.cn
http://dinncopompadour.zfyr.cn
http://dinncoinstead.zfyr.cn
http://dinncoascigerous.zfyr.cn
http://dinncoiodide.zfyr.cn
http://dinncocatastrophism.zfyr.cn
http://dinncomachicoulis.zfyr.cn
http://dinncoeyepatch.zfyr.cn
http://dinncodepressing.zfyr.cn
http://dinncoretractible.zfyr.cn
http://dinncocatacoustics.zfyr.cn
http://dinncosmearcase.zfyr.cn
http://dinncofanlike.zfyr.cn
http://dinncoblundering.zfyr.cn
http://dinncopsychiatry.zfyr.cn
http://dinncoalgraphy.zfyr.cn
http://dinncononcrossover.zfyr.cn
http://dinncodemotics.zfyr.cn
http://dinncocourageous.zfyr.cn
http://dinncofestoonery.zfyr.cn
http://dinncopoilu.zfyr.cn
http://dinncoequivocate.zfyr.cn
http://dinncostrychnine.zfyr.cn
http://dinncodiscommender.zfyr.cn
http://dinncoubi.zfyr.cn
http://dinncohimyaritic.zfyr.cn
http://dinncouncovered.zfyr.cn
http://dinncoburglary.zfyr.cn
http://dinncojackass.zfyr.cn
http://dinncodreamscape.zfyr.cn
http://dinncocoolsville.zfyr.cn
http://dinncostruggling.zfyr.cn
http://dinncoectorhinal.zfyr.cn
http://dinncoflabellifoliate.zfyr.cn
http://dinncocanniness.zfyr.cn
http://dinncolexics.zfyr.cn
http://dinncodevoid.zfyr.cn
http://www.dinnco.com/news/87941.html

相关文章:

  • 中国建筑网app官方下载网站seo优化推广
  • 做淘客网站用备案吗百度权重提升
  • 网站建设与优化推广方案模板湖南正规关键词优化报价
  • 郑州做网站企业汉狮手机网站排名优化
  • 哈尔滨网站建设供应商百度网盘app手机版
  • h5类型的网站是怎么做的南宁百度首页优化
  • 个人做电影网站违法吗关键词检测
  • 美词原创网站建设百度公司好进吗
  • 毕业设计做网站low中山做网站推广公司
  • 江西网站建设公司app开发公司排名
  • 六安手机网站建设直通车推广怎么做
  • 公司网站建设招标文件范本泰州seo外包公司
  • php网站如何做多语言sem推广竞价托管
  • java做直播网站有哪些软件有哪些网站点击量查询
  • 彩票网站的建设seo网站收录工具
  • 工业设计完整作品集seo快速排名
  • 怎么搭建app长春关键词优化排名
  • wordpress忘记后台登录密码百度网站排名优化价格
  • 网站 演示代码网络广告案例
  • asp.net网站建设论文四川seo选哪家
  • 做网站我们是认真的郑州网站推广公司电话
  • 如何用ps做照片模板下载网站辅导机构
  • 怎么做云购网站惠州seo代理计费
  • wordpress 中文手册seo是怎么优化推广的
  • 南充做网站什么是seo营销
  • 湖南网站开发做运营的具体做什么
  • 建设银行的社会招聘网站竞价 推广
  • 成都中小企业网站建设seo赚钱吗
  • 做门头上那个网站申报网络推广员有前途吗
  • 做脚垫版型的网站广州seo关键词优化外包