自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 Lintcode175 Invert Binary Tree solution 题解

【题目描述】 Invert a binary tree. 翻转一棵二叉树。 【题目链接】www.lintcode.com/en/problem/invert-binary-tree/【题目解析】用递归实现二叉树的翻转。递归出口为当结点为空时,返回NULL。否则对左右子树进行递归翻转,之后对翻转完成的左右子树的位置进行交换即可。 【参考答案】www.jiuzhang.com/solutions/in

2017-12-11 18:43:43 167

转载 MICROSOFT IDC 校招 INTERN五轮面经

我参加的是校园招聘,整个面试都是在学校里进行的。抱着试一试的心态去投递了简历,和很多高年级的人一块竞争,一共进行了5轮面试,最终很荣幸拿到了Offer。现在来分享一下自己的面试经验。 第一轮 技能测试 参加第一轮的一共有120个左右的同学。15道题,每个人给的题目都不一样。我做的有 STL, sorting, Java, Computer Architecture 和 OS. 第二轮 C

2017-12-10 14:17:28 270

转载 Lintcode174 Remove Nth Node From End of List solution 题解

【题目描述】 Given a linked list, remove the nth node from the end of list and return its head. 【注】The minimum number of nodes in list is n. 给定一个链表,删除链表中倒数第n个节点,返回链表的头节点。 【注】链表中的节点个数大于等于n 【题目链接】www.lintcode

2017-12-08 17:32:50 303

转载 Lintcode173 Insertion Sort List solution 题解

【题目描述】 Sort a linked list using insertion sort.用插入排序对链表排序。【题目链接】www.lintcode.com/en/problem/insertion-sort-list/【题目解析】用插入排序对一个链表进行排序的正确方法是:新建一个头节点,遍历原来的链表,对原链表的每个节点找到新链表中适合插入位置的前指针,然后执行插入操作。这种操作链表的题有一

2017-12-07 10:30:32 315

转载 Lintcode172 Remove Element solution 题解

【题目描述】 Given an array and a value, remove all occurrences of that value in place and return the new length.The order of elements can be changed, and the elements after the new length don't matter.给定一个

2017-12-06 13:02:00 204

转载 Lintcode171 Anagrams solution 题解

【题目描述】 Given an array of strings, return all groups of strings that are anagrams.【注】:All inputs will be in lower-case给出一个字符串数组S,找到其中所有的乱序字符串(Anagram)。如果一个字符串是乱序字符串,那么他存在一个字母集合相同,但顺序不同的字符串也在S中。【注】:所有的字

2017-12-06 00:17:33 236

空空如也

空空如也

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

TA关注的人

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