自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

原创 MacBook Pro电池0%,接上电源却显示电池没有正在充电的解决方案

博主的MBP刚买完就出现了充不进去电的情况,差点没吓个半死,总结了网上的解决方案后解决了问题,为了防止下次出现类似问题,先记录下来:将电源适配器连接到电源和MBP。在内建键盘上,同时按下左侧Shift+Control+Option键和电源按钮同时松开所有键和电源按钮打开电脑就发现问题解决了,谢天谢地啊~~

2017-08-26 11:03:56 68956 9

原创 LeetCode 92. Reverse Linked List II

Description: Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1->4->3->2->5->NULL. Note: Given

2017-08-11 21:22:39 256

原创 LeetCode 8. String to Integer (atoi)

Description: Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the po

2017-08-11 14:15:19 377

原创 LeetCode 7. Reverse Integer

Description: Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 Have you thought about this? Here are some good questions to ask before coding. B

2017-08-07 22:37:29 297

原创 LeetCode 6. ZigZag Conversion

Description: The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H N

2017-08-07 20:56:17 212

原创 LeetCode 3. Longest Substring Without Repeating Characters

Description: Given a string, find the length of the longest substring without repeating characters. For example: Given “pwwkew”, the answer is “wke”, with the length of 3. Note that the answ

2017-08-07 19:11:14 289

原创 LeetCode 214. Shortest Palindrome

Description: Given a string S, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can find by performing this transformati

2017-08-07 18:44:23 416

原创 针对mac系统下安装ipython时出现的OSError的解决方案

这几天学Python时,被人推荐去下载ipython,于是参考了网上得到如下方法:$ sudo pip install ipython --upgrade --ignore-installed six本人Mac系统为Sierra,多次尝试后总是出现这样的错误:OSError: [Errno 1] Operation not permitted: '/System/Library/Framework

2017-08-01 00:38:30 1355

原创 Huffman树的定义与实现

Huffman树的定义与实现

2016-12-10 16:52:13 516

原创 上机作业之树:二叉树遍历算法、由遍历序列构造二叉树算法

题目: 1. 定义二叉树类,封装构造二叉树基本操作,广度优先遍历,深度优先遍历(递归和非递归算法)等。 2. 实现由先序、中序序列构造二叉树的算法。 3. 实现由后序、中序序列构造二叉树的算法。//

2016-11-13 18:50:48 1295

原创 上机作业之树:递归算法在二叉树中的简单应用

简单数据结构操作

2016-11-10 10:22:13 869

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除