- 博客(2)
- 收藏
- 关注
原创 2021-10-26
Letcode 剑指offer 09:用两个栈实现队列 appendTail:相当于进队列 deleteHead:相当于出队列 通过栈的先进后出实现队列的先进先出 代码: class CQueue { //申明两个栈 Stack<Integer> s1 = new Stack<Integer>(); Stack<Integer> s2 = new Stack<Integer>(); public CQueue() { }
2021-10-26 00:43:14
93
原创 杭电1002 大数相加 c++程序
杭电1002,大数相加 想法 这道题的思想其实并不复杂,难点就在于位数和进位 代码 #include<iostream> #include<string.h> #include<algorithm> using namespace std; int main() { int n,p,q,w; char x[1010],y[1010],z[1010...
2019-08-05 15:44:35
290
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人