1 Star 1 Fork 0

laodasbch/Leetcode-Complete-Guide

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
dd.txt 410 Bytes
Copy Edit Raw Blame History
JunB(66哥) authored 5 years ago . Create dd.txt
public void delete(Dnode node){
Dnode pre=node.pre;
Dnode next=node.next;
pre.next=next;
next.pre=pre;
map.remove(node.v);
}
public void add(int v){
Dnode node=new Dnode(v);
Dnode pre=tail.pre;
pre.next=node;
node.pre=pre;
node.next=tail;
tail.pre=node;
map.put(v,node);
}
class Dnode{
Dnode next=null;
Dnode pre=null;
int v;
public Dnode(int v){
this.v=v;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/laodasbch/Leetcode-Complete-Guide.git
git@gitee.com:laodasbch/Leetcode-Complete-Guide.git
laodasbch
Leetcode-Complete-Guide
Leetcode-Complete-Guide
master

Search