Given n orders, each order consist in pickup and delivery services. Count all valid pickup/delivery possible sequences such that delivery(i) is always ...
分类:
其他好文 时间:
2020-02-25 13:02:43
阅读次数:
95
给定一个由 0 和 1 组成的矩阵,找出每个元素到最近的 0 的距离。 两个相邻元素间的距离为 1 。 示例 1: 输入: 输出: 示例 2: 输入: 输出: 注意: 1. 给定矩阵的元素个数不超过 10000。 2. 给定矩阵中至少有一个元素是 0。 3. 矩阵中的元素只在四个方向上相邻: 上、下 ...
分类:
其他好文 时间:
2020-02-08 13:27:06
阅读次数:
72
1、题目描述 对所有员工的当前(to_date='9999-01-01')薪水按照salary进行按照1-N的排名,相同salary并列且按照emp_no升序排列CREATE TABLE `salaries` (`emp_no` int(11) NOT NULL,`salary` int(11) N ...
分类:
其他好文 时间:
2020-02-07 12:49:02
阅读次数:
100
A binary watch has 4 LEDs on the top which represent the hours (0-11), and the 6 LEDs on the bottom represent the minutes (0-59). Each LED represents ...
分类:
其他好文 时间:
2020-01-16 14:44:07
阅读次数:
73
Discuss your test plan 我们的软件比较依赖于数据库的内容,所以对数据库数据的检测是一个很重要的环节,要做到所有的数据库访问方法和进程都按照设计的方式进行,数据没有遭到损坏。对数据和数据库完整性测试,调用各个数据库访问方法和进程,并在其中填充有效和无效的数据或对数据的请求,检查数 ...
分类:
其他好文 时间:
2020-01-04 22:08:25
阅读次数:
94
https://www.codebyamir.com/blog/java-developers-guide-to-ssl-certificates Overview When developing web applications, we often need to integrate with o ...
分类:
编程语言 时间:
2019-12-24 13:59:37
阅读次数:
103
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.IO; using System.Linq; us... ...
这类reverse的题不会写,会写homebrew也枉然。这题我用的是iterative的思路做的。创建一个空的指针pre。当head不为空的时候,先存住head.next,然后head.next指向pre,最后pre,head,next三个指针整体往后移动一位。代码如下,也share一个注释写的比 ...
分类:
其他好文 时间:
2019-10-14 12:31:47
阅读次数:
99
在实现JS版本之前我有实现过Java版本,很奇怪为什么discussion里面大多数JS版本的解法都没有用dummy node。 ...
分类:
其他好文 时间:
2019-10-09 09:43:37
阅读次数:
68
leetcode 866. Prime Palindrome 题目:https://leetcode.com/problems/prime-palindrome/ 解法:https://leetcode.com/problems/prime-palindrome/discuss/158439/c%2 ...
分类:
其他好文 时间:
2019-09-26 23:36:48
阅读次数:
104