
leetcode面试题
文章平均质量分 73
阳光明媚2015
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Same Tree Leetcode c#
Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same value. /** 用递归的方法原创 2015-04-26 04:45:22 · 638 阅读 · 0 评论 -
Single Number---leetcode c# solution
Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without using ext原创 2015-04-14 06:49:13 · 784 阅读 · 0 评论 -
Merge Sorted Array ---leetcode Java C#
Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements fro原创 2015-03-30 09:20:01 · 372 阅读 · 0 评论 -
Remove Duplicates from Sorted Array II--leetcode 我的java题解
leetcode 题解。 我自己的解法,可能会有不足,欢迎指点。原创 2015-03-26 15:53:44 · 474 阅读 · 0 评论 -
Remove Nth Node From End of List---leetcode 我的java题解
原题https://leetcode.com/problems/remove-nth-node-from-end-of-list/ 这道题的要求是删除链表中的倒数第n个元素(n总是有效的),不过要求遍历1次链表。 因为要找到倒数第n个,那么删除的数距离最后一个数的间距就是n,需要引入间隔n的2个指针left 和right, 先用快指针right从头后移n次,这样left原创 2015-03-29 03:43:07 · 491 阅读 · 0 评论 -
Reverse Words in a String ---leetcode 我的java题解
原题连接https://leetcode.com/problems/reverse-words-in-a-string/ Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". Up原创 2015-04-01 02:53:57 · 444 阅读 · 0 评论 -
Remove Duplicates from Sorted List II-- Leetcode 我的java题解
leetcode 题解。 我自己的解法,可能会有不足,欢迎指点。原创 2015-03-28 15:17:23 · 519 阅读 · 0 评论 -
Remove Element--Leetcode java c#
原题链接: http://oj.leetcode.com/problems/remove-element/ 题目:Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It do原创 2015-03-29 03:25:20 · 566 阅读 · 0 评论 -
Rotate Array---leetcode 我的java题解
原题连接 https://leetcode.com/problems/rotate-array/ Rotate an array of n elements to the right by k steps. For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,原创 2015-04-01 02:34:53 · 535 阅读 · 0 评论 -
Remove Duplicates from Sorted Array---leetcode 我的java题解
leetcode 题解。 我自己的解法,可能会有不足,欢迎指点。原创 2015-03-26 15:45:57 · 376 阅读 · 0 评论 -
Remove Duplicates from Sorted List ---Leetcode 我的java题解
leetcode 题解。 我自己的解法,可能会有不足,欢迎指点。原创 2015-03-27 05:06:11 · 423 阅读 · 0 评论 -
leetcode - Maximum Depth of Binary Tree C#
原题连接:https://leetcode.com/problems/maximum-depth-of-binary-tree/ Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node d原创 2015-05-09 04:41:57 · 631 阅读 · 0 评论