码迷,mamicode.com
首页 >  
搜索关键字:inpu    ( 7831个结果
剑指offer-数组中重复的数字
题目描述 在一个长度为n的数组里的所有数字都在0到n-1的范围内。 数组中某些数字是重复的,但不知道有几个数字是重复的。也不知道每个数字重复几次。请找出数组中任意一个重复的数字。 例如,如果输入长度为7的数组{2,3,1,0,2,5,3},那么对应的输出是第一个重复的数字2。 思路: 1. 找到每个 ...
分类:编程语言   时间:2020-03-30 20:02:08    阅读次数:79
一行导出所有任意微软SQL server数据脚本-基于Python的微软官方mssql-scripter工具使用全讲解
一款由微软官方发布的数据库管理工具,可以通过命令行,直接生成SQL脚本。 在实际开发中,如果想提高数据库生成效率,则用它能事半功倍。 如果你语言足够熟悉,当然也可以用sqlcms、dotNETcore、Powershell工具在微软平台,快速的对数据库进行各类建模,而这款工具则提供了另一种跨平台... ...
分类:数据库   时间:2020-03-30 19:33:19    阅读次数:109
socket
# coding:utf-8from socket import *HOST = '127.0.0.1'PORT = 8088BUFSIZ =1024ADDR = (HOST,PORT)tcpCliSock = socket(AF_INET,SOCK_STREAM)tcpCliSock.connec ...
分类:其他好文   时间:2020-03-30 11:25:58    阅读次数:111
[LeetCode] 937. Reorder Data in Log Files 日志文件的重新排序
You have an array of . Each log is a space delimited string of words. For each log, the first word in each log is an alphanumeric identifier . Then, e ...
分类:编程语言   时间:2020-03-30 09:46:15    阅读次数:93
219. Contains Duplicate II
Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the  ...
分类:其他好文   时间:2020-03-29 21:16:05    阅读次数:58
购物车
!/usr/bin/evn python# Aothor Jackproduct_list=[ ('Iphone',5800), ('Mac Pro',9800), ('Bick',800), ('Watch',10600), ('Coffee',31), ('Alex Python',120)]s ...
分类:其他好文   时间:2020-03-29 19:51:51    阅读次数:61
汉诺塔
1 count = 0 2 def hanoi(n, src, dst, mid): 3 global count 4 if n == 1: 5 print("{}:{}->{}".format(1,src,dst)) 6 count += 1 7 else : 8 hanoi(n-1, src, ...
分类:其他好文   时间:2020-03-29 19:49:41    阅读次数:68
鸡兔同笼
n=eval(input()) for k in range(n): a=eval(input()) if a%2!=0: min=max=0 else: j=a/4 i=a%4/2 min=i+j max=a/2 print("%d %d"%(min,max)) ...
分类:其他好文   时间:2020-03-28 23:51:00    阅读次数:109
序列和-------一道大厂秋招笔试题
题目: 给出一个正整数N和长度L,找出一段长度大于等于L的连续非负整数,他们的和恰好为N。答案可能有多个,我我们需要找出长度最小的那个。 例如 N = 18 L = 2: 5 + 6 + 7 = 18 3 + 4 + 5 + 6 = 18 都是满足要求的,但是我们输出更短的 5 6 7 综合网上给出 ...
分类:其他好文   时间:2020-03-28 23:40:50    阅读次数:624
PAT Advanced 1107 Social Clusters (30) [并查集]
题目 When register on a social network, you are always asked to specify your hobbies in order to find some potential friends with the same hobbies. A “s ...
分类:其他好文   时间:2020-03-28 23:13:05    阅读次数:76
7831条   上一页 1 ... 71 72 73 74 75 ... 784 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!