自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Kingfar Ou

重要的不是写了多少行代码,而是花了多少时间去想该怎么写。

  • 博客(6)
  • 问答 (5)
  • 收藏
  • 关注

原创 leetCode26:Remove Duplicates from Sorted Array

Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this in place with

2015-12-31 16:25:35 516

原创 leetCode61:Rotate List

Given a list, rotate the list to the right by k places, where k is non-negative.For example:Given 1->2->3->4->5->NULL and k = 2,return 4->5->1->2->3->NULL.问题需求:将单链表循环右移,移动次数有参数所决定。问题分析

2015-12-27 14:20:42 408

原创 leetCode24:Swap Nodes in Pairs

Given a linked list, swap every two adjacent nodes and return its head.For example,Given 1->2->3->4, you should return the list as 2->1->4->3.Your algorithm should use only constant space. Y

2015-12-26 16:03:18 343

原创 leetCode2:Add Two Numbers

/** * Definition for singly-linked list. * struct ListNode { *     int val; *     struct ListNode *next; * }; */struct ListNode* addTwoNumbers(struct ListNode* l1, struct ListNode* l2) {

2015-12-26 14:08:37 80

原创 LeetCode,141:Linked List Cycle

C语言实现判断单链表是否带有循环LeetCode原题如下:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?对于一个普通的单链表(双向链表以及循环链表不算在内),链表最后一个元素指针==NULL,一

2015-12-25 10:38:33 370

原创 leetCode:234: Palindrome Linked List

C语言实现判断某链表是否属于回文链表

2015-12-25 10:10:02 453

空空如也

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

TA关注的人

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