Yes n An ant is on a ring of m grids in length. The grids on the ring are numbered counterclockwise, and each ant moves one grid per second in the direction it faces. If two ants collide, switch di
Tag: Solving
Leekcode solving record
There was a LeekCode competition last night. Five questions were solved in two and a half hours. After solving the first two questions easily, I got stuck on the third question. When there was half
HBASE 2.1.3 Cluster Web Removement InvalidProtocolBuffeRexception Solution
After the HBase cluster is built, various background processes are normal. Refer to the construction manual:
Hbase 2.1.3 Cluster Construction Manual
https://www.cndba.cn/dave/article/3322
Android Studio 3.1 always gets an error on the ability to resolve dependencies
After updating android studio to 3.1, if I add a new dependency, it will suddenly error:
dependencies {
compile’com.github.florent37:android-slidr:1.0.4′
} It gives this error:
< /p>
Reptile – picture lazy loading solution
Dynamic data loading processing
I. Lazy loading of pictures
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import requests
from lxml import etree
if __name__ == “__main__”:
url =
Algorithm – How to get the minimum number of movements to solve the “fifteen year game”?
I am reading about this and considering forming an algorithm to find the minimum number of moves to solve this problem.
The constraint I made: has an empty slot An N×N matrix of (e.g. 0) will
Table Structure Design with PowerDesigner – Express into SQL scripts, and solve Chinese garbled
For newcomers who are new to PowerDesigner, if you use PowerDesigner to design the structure of the table, if you just simply design the mapping relationship of the data model to view it, then ther