码迷,mamicode.com
首页 >  
搜索关键字:primitive value    ( 38200个结果
硬币找零
/** 硬币找零:三个硬币面值2,5,7,希望用最少的硬币数拼出27* 分析:用动态规划解* f[X]:最少的硬币拼出X,设最后一步用a拼出了27,a可以是2/5/7,那么* f[27]=f[27-a]+1,因为不知道a具体是多少,所以,f[27]=min{f[27-2]+1,f[27-5]+1,f ...
分类:其他好文   时间:2021-04-16 12:02:09    阅读次数:0
生成自定义长度字符串
def strGen(self, num): """ 生成可自定义长度的数字、字母和特殊字符混合的字符串 :return: """ list1 = [chr(i) for i in range(65, 91)] + [chr(i) for i in range(97, 123)] + [str(i) ...
分类:其他好文   时间:2021-04-15 12:48:26    阅读次数:0
web13
根据提示查看源码,看到p1与p2以及后面的eval 看到p1的字符串,想到URL编码,故解码之 p1=function checkSubmit(){var a=document.getElementById("password");if("undefined"!=typeof a){if("67d7 ...
分类:Web程序   时间:2021-04-15 12:40:32    阅读次数:0
每日一题力扣530 二叉搜索树的最小绝对查
给你一棵所有节点为非负值的二叉搜索树,请你计算树中任意两节点的差的绝对值的最小值。 class Solution: def getMinimumDifference(self, root: TreeNode) -> int: #初始化,最小值赋值为无穷大,last_value记录上一个节点的值 mi ...
分类:其他好文   时间:2021-04-15 12:22:03    阅读次数:0
python异常处理
sys.exc_info() 获取异常 import sys try: raise ValueError('this is a exp') except Exception as ex: ex_type, ex_val, ex_stack = sys.exc_info() print(ex_type ...
分类:编程语言   时间:2021-04-14 12:39:26    阅读次数:0
vue数据劫持
var Book = {} var name = ''; Object.defineProperty(Book, 'name', { set: function (value) { name = value; console.log('你取了一个书名叫做' + value); }, get: fun ...
分类:其他好文   时间:2021-04-14 11:55:37    阅读次数:0
690. Employee Importance
You are given a data structure of employee information, which includes the employee's unique id, their importance value and their direct subordinates' ...
分类:其他好文   时间:2021-04-13 12:31:50    阅读次数:0
Leetcode 74. Search a 2D Matrix
Description: Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row ...
分类:其他好文   时间:2021-04-12 12:32:28    阅读次数:0
向mysql创建一个新用户失败,报“ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value”
使用mysql-8.0.23版的,创建用户屡屡失败,最终靠万能的度娘解决: 已知版本信息: C:\Users\Administrator\Desktop\mysql-8.0.23-winx64\mysql-8.0.23-winx64\bin>mysql -Vmysql Ver 8.0.23 for ...
分类:数据库   时间:2021-04-12 12:20:25    阅读次数:0
冒泡排序-python
source program: list=[]while True: print("how many number input:") try: num=int(input()) for i in range(num): a=int(input("input"+str((i+1))+"integer: ...
分类:编程语言   时间:2021-04-12 11:41:22    阅读次数:0
38200条   上一页 1 ... 26 27 28 29 30 ... 3820 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!