chenf99 blog


  • 首页

  • 关于

  • 归档

  • 搜索

leetcode-023

发表于 2018-09-16 | 更新于: 2018-10-10 | 分类于 leetcode
字数统计: 1.3k 字

题目

Merge k Sorted Lists

Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.

Example:

1
2
3
4
5
6
7
Input:
[
1->4->5,
1->3->4,
2->6
]
Output: 1->1->2->3->4->4->5->6
阅读全文 »

git学习笔记

发表于 2018-09-13 | 更新于: 2018-10-13 | 分类于 git
字数统计: 2.2k 字

Git学习笔记


前言

git作为世界上最先进的分布式版本控制系统,为我们管理自己的代码提供了很多便利,它的指令强大且复杂多样,而我一直都只用着git add、git push等最简单的指令,十分惭愧。希望这篇笔记能帮助我之后的git学习,也帮助到有需要的同学。

阅读全文 »

leetcode-031

发表于 2018-09-09 | 更新于: 2018-10-05 | 分类于 leetcode
字数统计: 786 字

题目

Next Permutation

Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.

If such arrangement is not possible, it must rearrange it as the lowest possible order (ie, sorted in ascending order).

The replacement must be in-place and use only constant extra memory.

Here are some examples. Inputs are in the left-hand column and its corresponding outputs are in the right-hand column.

1
2
3
4
> 1,2,3 → 1,3,2
> 3,2,1 → 1,2,3
> 1,1,5 → 1,5,1
>
阅读全文 »
1…8910
Chenf99

Chenf99

30 日志
6 分类
10 标签
© 2019 Chenf99
总访客数: 总访问量:
本站共计64.3k字