- 博客(3)
- 收藏
- 关注
原创 Leetcode 237 Delete Node in a Linked List
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is 1 -> 2 -> 3 -> 4 and you are given the third node with value
2017-04-01 23:05:09 229
原创 Leetcode141——Linked List Cycle
题目:Given a linked list, determine if it has a cycle in it.Follow up: Can you solve it without using extra space?开启自己的刷题之旅,尝试每两天刷一题左右,并把Solution都研究一下。第一眼看这个题目,没有理解题目的意思,看成判断链表是否为循环链表,那这不是两
2017-04-01 22:26:10 264
原创 C++ String输出方式
C++中使用cout对string类型的进行输出,发现会出现error;#include "stdafx.h"#include "iostream"#include #include using namespace std;void main(){ cout << "请输入以一个整数" << endl; int a; cin >> a; char number[5];
2017-03-28 20:18:15 23084
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人