思路 对于 并不好考虑,可以针对 考虑。 发现每次移动会在一堆 之间移动把一个 移动 $2$ 位,因此只需要记录所有 位置的奇偶性即可,具体实现可以用 Hash,对开头奇数/偶数分别开 Hash 表记录。 这里 Hash 实现有一个方法:(BKDRHash) $$h_i = ph_{i 1} + s ...
分类:
其他好文 时间:
2020-03-08 17:47:03
阅读次数:
57
import csv import uuid from hashlib import sha256 import numpy as np import argparse import random,string def gen_demo(rows:int, each_iter:int, featur ...
分类:
其他好文 时间:
2020-03-08 17:21:33
阅读次数:
88
原题链接在这里:https://leetcode.com/problems/shortest-path-in-a-grid-with-obstacles-elimination/ 题目: Given a m * n grid, where each cell is either 0 (empty) ...
分类:
其他好文 时间:
2020-03-08 09:49:10
阅读次数:
72
Given the string s, return the size of the longest substring containing each vowel an even number of times. That is, 'a', 'e', 'i', 'o', and 'u' must ...
分类:
其他好文 时间:
2020-03-08 09:32:42
阅读次数:
81
我经常在windbg中调试.netframeworkv2.0/v 4.0代码。在v 2.0中,主clr dll称为“mscorwks.dll”,在v 4.0中称为“clr.dll”。很多人都知道,要在v 2.0中加载sos,我们必须输入“.loadby sos mscorwks”,在v 4.0中输入 ...
分类:
数据库 时间:
2020-03-07 10:09:58
阅读次数:
92
《C#高级编程第11版 - (Professional C# 7.0 and .NET Core 2.0)》个人译注+修订+扩展。 ...
1 """ 2 Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must ...
分类:
其他好文 时间:
2020-03-07 09:40:06
阅读次数:
81
手稿图 折线图 | Argument | Description | | : | : | | xs , ys | x, y coordinates of vertices | | zs | z value(s), either one for all points or one for each p ...
分类:
编程语言 时间:
2020-03-06 21:47:34
阅读次数:
154
index页面1.params this.$router.push()方法中path不能与params同用,否则param会失效,所以用name来指定页面,params来传递数据内容。 1 <template> 2 <img src="../../static/images/indexTermian ...
分类:
其他好文 时间:
2020-03-06 15:22:18
阅读次数:
64
1 """ 2 Given a non-empty array of digits representing a non-negative integer, plus one to the integer. 3 The digits are stored such that the most sig ...
分类:
其他好文 时间:
2020-03-06 13:09:03
阅读次数:
61