description Given a positive integer N, return the number of positive integers less than or equal to N that have at least 1 repeated digit. Example In ...
分类:
其他好文 时间:
2020-06-25 14:09:06
阅读次数:
65
查看当前系统shell运行类型 [vagrant@localhost ssh]$ echo $BASH /bin/bash 第一个shell脚本 [vagrant@localhost ssh]$ vi first_shell.sh #!/bin/bash echo 'hello world' [va ...
分类:
系统相关 时间:
2020-06-25 11:36:03
阅读次数:
61
##多表查询: 1.内连接查询: 1.隐式内连接; 出现的小问题:Incorrect string value: '\xE5\xBC\x80\xE5\x8F\x91...' for column 'dname' at;解决方案:修改字符集为utf8. 语句:SELECT * FROM emp,dep ...
分类:
数据库 时间:
2020-06-25 11:34:26
阅读次数:
88
题目 Given an array of citations sorted in ascending order (each citation is a non-negative integer) of a researcher, write a function to compute the re ...
分类:
其他好文 时间:
2020-06-25 09:37:51
阅读次数:
61
Find the Duplicate Number (M) 题目 Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least ...
分类:
其他好文 时间:
2020-06-25 09:20:33
阅读次数:
64
注入获取 通过IConfiguration直接获取的方法官方文档里就有,可以直接看这里 如:appsettings.json { "Position": { "Title": "编辑器", "Name": "Joe Smith" }, "MyKey": "My appsettings.json Va ...
分类:
移动开发 时间:
2020-06-24 23:28:51
阅读次数:
278
动态规划好巧妙啊啊啊啊啊啊啊 啊 int max =Integer.MIN_VALUE; public int maxPathSum(TreeNode root) { //用动态规划来求解 //DFS //根节点的值、左子树的值、右子树的值、 dfs(root); return max; } pri ...
分类:
其他好文 时间:
2020-06-24 21:45:36
阅读次数:
59
# 导入验证器 from jsonschema import validate # 编写schema: my_schema = { "$schema": "http://json-schema.org/draft-04/schema#", "title": "TestInfo", "descript ...
分类:
编程语言 时间:
2020-06-24 21:23:43
阅读次数:
93
Java方法分为实例方法和静态方法 实例方法 1 /*实例方法*/ 2 public final class Integer{ 3 boolean equals(Object o){ 4 ... 5 } 6 } 7 8 9 /*静态方法*/ 10 public final class Integer ...
分类:
其他好文 时间:
2020-06-24 19:53:56
阅读次数:
85
import java.util.*; /** * @Class CanVisitAllRooms * @Description 841. 钥匙和房间 * 有 N 个房间,开始时你位于 0 号房间。每个房间有不同的号码:0,1,2,...,N-1, * 并且房间里可能有一些钥匙能使你进入下一个房间。 ...
分类:
其他好文 时间:
2020-06-24 16:10:15
阅读次数:
41