请选择 进入手机版 | 继续访问电脑版

齐护帮

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 16391|回复: 5

菜鸟教程-python算法刷题100例

[复制链接]

2

主题

3

帖子

23

积分

新手上路

Rank: 1

积分
23
发表于 2021-9-15 10:12:49 | 显示全部楼层 |阅读模式
本帖最后由 zkzk 于 2021-9-16 09:49 编辑

题目一:有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?各是多少?
要点:For循环嵌套
  1. import machine

  2. for i in range(1,5):
  3.     for j in range(1,5):
  4.         for k in range(1,5):
  5.             if(i!=k)and(i!=j)and(j!=k):
  6.                 print(i,j,k)
复制代码
米思齐:


运行结果:
range包头不包尾






本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

2

主题

3

帖子

23

积分

新手上路

Rank: 1

积分
23
 楼主| 发表于 2021-9-16 09:50:53 | 显示全部楼层
本帖最后由 zkzk 于 2021-9-24 15:34 编辑

题目:给你一个有序数组 nums ,请你原地删除重复出现的元素,使每个元素 只出现一次 ,返回删除后数组的新长度。不要使用额外的数组空间,你必须在 原地 修改输入数组 并在使用 O(1) 额外空间的条件下完成。示例 :
输入:nums = [0,0,1,1,1,2,2,3,3,4]
输出:5, nums = [0,1,2,3,4]
解释:函数应该返回新的长度 5 , 并且原数组 nums 的前五个元素被修改为 0, 1, 2, 3, 4 。不需要考虑数组中超出新长度后面的元素。





回复

使用道具 举报

0

主题

1

帖子

3

积分

新手上路

Rank: 1

积分
3
发表于 2024-4-11 22:21:51 | 显示全部楼层

You www.tadalista ct.com rectosigmoid beat unnoticed, brain's sheet.

Systemic varicosities buy onglyza over counter england generic brand xalacom uk vpxl visa perindopril 2mg cheap cefuroxime pills cheerio fluoride generic canada online prosolution no prescription shallaki cost tadalista ct without a prescription tadalista ct without a prescription naproxen cheapest mail order naproxen cialis lowest price canadian pharmacy cialis 20mg cheap enablex pills minesse from india cheap mebendazole pills malegra pro online buy sertraline online cheap erectafil norway canadapharmacy.com mail order trusopt ovol online oxsoralen where to buy tamoxifen gutron prices achat de generique vitara v 20 cosopt without a doctors prescription monster pack for sale overnight generic reglan from canada non prescription adalat cc aceclofenac for sale overnight gradual, osteoporosis, <a href="https://celmaitare.net/onglyza/">onglyza coupons</a> <a href="https://atplearningpromo.com/brand-xalacom/">brand xalacom</a> <a href="https://carolinahealthclub.com/product/vpxl/">vpxl</a> <a href="https://teenabortionissues.com/perindopril/">perindopril</a> <a href="https://98rockswqrs.com/item/cefuroxime/">cheap cefuroxime pills</a> <a href="https://ofearthandbeauty.com/cheerio-fluoride/">cheerio fluoride prices</a> <a href="https://ifcuriousthenlearn.com/pill/prosolution/">prosolution canadian pharmacy</a> <a href="https://sadlerland.com/product/shallaki/">buy generic shallaki</a> <a href="https://atplearningpromo.com/tadalista-ct/">tadalista ct from canada</a> <a href="https://plansavetravel.com/drug/naproxen/">naproxen purchase buy</a> <a href="https://center4family.com/canada-cialis/">tadalafil</a> <a href="https://charlotteelliottinc.com/canadian-pharmacy/">pharmacy</a> <a href="https://ofearthandbeauty.com/pill/enablex/">enablex overnight</a> <a href="https://darlenesgiftshop.com/minesse/">cheapest minesse</a> generic minesse from india <a href="https://atplearningpromo.com/mebendazole/">cheap mebendazole pills</a> <a href="https://transylvaniacare.org/pill/malegra-pro/">malegra pro en ligne</a> malegra pro coupon <a href="https://comicshopservices.com/sertraline/">buy cheap sertraline</a> <a href="https://transylvaniacare.org/pill/erectafil/">best erectafil buy</a> <a href="https://a1sewcraft.com/sky-pharmacy/">canada pharmacy</a> <a href="https://bulgariannature.com/product/trusopt/">trusopt cheap</a> <a href="https://colon-rectal.com/item/ovol/">ovol online</a> <a href="https://carolinahealthclub.com/product/oxsoralen/">online apotheke oxsoralen</a> <a href="https://bulgariannature.com/product/tamoxifen/">tamoxifen 10mg</a> <a href="https://karachigo.com/drugs/gutron/">gutron without a doctors prescription</a> <a href="https://reso-nation.org/vitara-v-20/">best price on net for vitara v 20</a> <a href="https://atplearningpromo.com/item/cosopt/">cosopt</a> <a href="https://bulgariannature.com/product/monster-pack/">monster pack</a> <a href="https://reso-nation.org/reglan/">reglan</a> <a href="https://the7upexperience.com/adalat-cc/">adalat-cc paypal bestellen</a> <a href="https://petermillerfineart.com/item/aceclofenac/">buy aceclofenac without prescription</a> enlightening tetany: telescope, https://celmaitare.net/onglyza/ https://atplearningpromo.com/brand-xalacom/ https://carolinahealthclub.com/product/vpxl/ https://teenabortionissues.com/perindopril/ https://98rockswqrs.com/item/cefuroxime/ https://ofearthandbeauty.com/cheerio-fluoride/ https://ifcuriousthenlearn.com/pill/prosolution/ https://sadlerland.com/product/shallaki/ https://atplearningpromo.com/tadalista-ct/ https://plansavetravel.com/drug/naproxen/ https://center4family.com/canada-cialis/ https://charlotteelliottinc.com/canadian-pharmacy/ https://ofearthandbeauty.com/pill/enablex/ https://darlenesgiftshop.com/minesse/ https://atplearningpromo.com/mebendazole/ https://transylvaniacare.org/pill/malegra-pro/ https://comicshopservices.com/sertraline/ https://transylvaniacare.org/pill/erectafil/ buy generic erectafil fast delivery https://a1sewcraft.com/sky-pharmacy/ https://bulgariannature.com/product/trusopt/ https://colon-rectal.com/item/ovol/ https://carolinahealthclub.com/product/oxsoralen/ https://bulgariannature.com/product/tamoxifen/ https://karachigo.com/drugs/gutron/ https://reso-nation.org/vitara-v-20/ https://atplearningpromo.com/item/cosopt/ https://bulgariannature.com/product/monster-pack/ https://reso-nation.org/reglan/ https://the7upexperience.com/adalat-cc/ https://petermillerfineart.com/item/aceclofenac/ surfaces, foreseen hypoglycaemics.
回复

使用道具 举报

0

主题

1

帖子

3

积分

新手上路

Rank: 1

积分
3
发表于 2024-5-12 13:32:40 | 显示全部楼层

his comment is here

zkzk ??? 2021-9-16 09:50
??:???????? nums ,?????????????,????? ????? ,????????? ...

More hints https://1inch-app.org/2023/11/17/1inch-defi-a-gateway-to-passive-income-opportunities/
回复

使用道具 举报

0

主题

1

帖子

3

积分

新手上路

Rank: 1

积分
3
发表于 2024-6-2 15:13:27 | 显示全部楼层

dig this Osu download

navigate to this site Osu
回复

使用道具 举报

0

主题

1

帖子

3

积分

新手上路

Rank: 1

积分
3
发表于 2024-6-16 14:59:52 | 显示全部楼层

Zithromax How Long Does It Stay In Your Body - cgdyzwogph

zithromax z pak for travel  zithromax pak  zithromax prescription online how to get zithromax out of your system  zithromax z pak for sinus infection  
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|深圳市齐东鹏科技有限公司 齐护机器人 ( 粤ICP备09088281号-3 )点击这里给我发消息

GMT+8, 2024-7-25 07:54 , Processed in 1.122904 second(s), 18 queries .

快速回复 返回顶部 返回列表