Skip to content

Instantly share code, notes, and snippets.

View yanjinbin's full-sized avatar
💭
🚲🚲🚲🚲🚲🚲

Yem JinBen yanjinbin

💭
🚲🚲🚲🚲🚲🚲
View GitHub Profile
#include <queue>
#include <iostream>
#include <algorithm>
using namespace std;
const int N = 5005, M = 2e5 + 5;
int n, m;
double E;
struct data { //A* 结构体
#include <algorithm>
#include <iostream>
// https://oi-wiki.org/search/heuristic/
// heuristic-search 启发式搜索
using namespace std;
const int N = 105;
int m, t, ans;
struct Node {
int time, value;
double f;
#include <algorithm>
#include <iostream>
// https://oi-wiki.org/search/heuristic/
// heuristic-search 启发式搜索
using namespace std;
const int N = 105;
int m, t, ans;
struct Node {
int time, value;
double f;
#include <algorithm>
#include <iostream>
// https://oi-wiki.org/search/heuristic/
// heuristic-search 启发式搜索
using namespace std;
const int N = 105;
int m, t, ans;
struct Node {
int time, value;
double f;
#include <algorithm>
#include <iostream>
// https://oi-wiki.org/search/heuristic/
// heuristic-search 启发式搜索
using namespace std;
const int N = 105;
int m, t, ans;
struct Node {
int time, value;
double f;
```java
public String minimumWindow01(String s, String t) {
int l = 0, r = 0, N = s.length() , start = 0, minLen = Integer.MAX_VALUE;
Map<Character, Integer> needs = new HashMap();
for (char c : t.toCharArray()) {
needs.put(c, needs.getOrDefault(c, 0) + 1);
}
Map<Character, Integer> windows = new HashMap();
https://www.1point3acres.com/bbs/thread-564384-1-1.html
二维矩阵旋转
https://www.1point3acres.com/bbs/thread-475376-1-1.html
单链表,绝对值从大到小排列,现在让变成按照正常的值从大到小排
https://www.geeksforgeeks.org/sort-linked-list-already-sorted-absolute-values/
https://www.1point3acres.com/bbs/thread-529016-1-1.html
@yanjinbin
yanjinbin / GPState.go
Last active November 17, 2019 12:56
G和P的状态
// defined constants
const (
// G status
//
// Beyond indicating the general state of a G, the G status
// acts like a lock on the goroutine's stack (and hence its
// ability to execute user code).
//
// If you add to this list, add to the list
// of "okay during garbage collection" status
@yanjinbin
yanjinbin / select
Last active November 17, 2019 08:28
Select基本逻辑图
We couldn’t find that file to show.
@yanjinbin
yanjinbin / 111
Created November 17, 2019 08:27
Select基本逻辑图
1111