自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 LeetCode-442. Find All Duplicates in an Array C#

Given an array of integers, 1 ≤ a[i] ≤n(n= size of array), some elements appeartwiceand others appearonce. Find all the elements that appeartwicein this array. Could you do it without e...

2017-03-16 23:39:00 81

转载 LeetCode 395. Longest Substring with At Least K Repeating Characters C#

Find the length of the longest substringTof a given string (consists of lowercase letters only) such that every character inTappears no less thanktimes. Example 1: Input: s = "...

2017-01-13 23:52:00 75

转载 LeetCode 280. Wiggle Sort C#

Given an unsorted arraynums, reorder itin-placesuch thatnums[0] <= nums[1] >= nums[2] <= nums[3].... For example, givennums = [3, 5, 2, 1, 6, 4], one possible answer is[1, 6, 2, 5...

2017-01-13 03:41:00 71

转载 366. Find Leaves of Binary Tree C#

Example:Given binary tree 1 / \ 2 3 / \ 4 5 Returns[4, 5, 3], [2], [1]. Explanation: 1. Removing the leaves[4, 5, 3]would res...

2017-01-13 00:43:00 63

转载 LeetCode-448. Find All Numbers Disappeared in an Array C#

Given an array of integers where 1 ≤ a[i] ≤n(n= size of array), some elements appear twice and others appear once. Find all the elements of [1,n] inclusive that do not appear in this array. ...

2016-12-21 05:37:00 85

转载 LeetCode 453. Minimum Moves to Equal Array Elements C#

Given anon-emptyinteger array of sizen, find the minimum number of moves required to make all array elements equal, where a move is incrementingn- 1 elements by 1. Example: Input: [1,2,3]...

2016-12-15 04:57:00 63

转载 LeetCode 328. Odd Even Linked List C#

Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the value in the nodes. You should try to do it...

2016-12-14 00:40:00 59

转载 LeetCode #3. Longest Substring Without Repeating Characters C#

Given a string, find the length of thelongest substringwithout repeating characters. Examples: Given"abcabcbb", the answer is"abc", which the length is 3. Given"bbbbb", the answer is"b",...

2016-12-03 01:17:00 75

转载 LeetCode #139. Word Break C#

Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words. For example, given s = "leetcode", dict = ["l...

2016-12-01 06:47:00 97

转载 LeetCode 2. Add Two Numbers

You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a...

2016-11-24 03:36:00 51

转载 LeetCode 21. Merge Two Sorted Lists

Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Solution: 1->2->4->5 1->3->4-&gt...

2016-11-23 00:05:00 45

转载 LeetCode 234. Palindrome Linked List

Given a singly linked list, determine if it is a palindrome. Follow up: Could you do it in O(n) time and O(1) space? Solution 1 (loop through and use two-pointer O(n) time and O(n) space) ...

2016-11-19 05:08:00 61

转载 LeetCode 206 Reverse Linked List

Reverse a singly linked list. Solution 1 (recursion) /** * Definition for singly-linked list. * public class ListNode { * public int val; * public ListNode next; * publ...

2016-11-19 04:01:00 53

转载 Pivot Index--Google

Return the pivot index of the given array of numbers. The pivot index is the index where the sum of the numbers on the left is equal to the sum of the numbers on the right. Input Array {1,2,3,4,0...

2016-11-12 06:24:00 110

转载 DataTable Javascript Link not working on 2nd page

$(document).ready(function () { var otable = $('#tbl-resources').dataTable( { bJQueryUI: false, bFilter: true, bPaginate: true, bSort: false, bInfo:...

2016-11-10 05:10:00 159

转载 LeetCode 304. Range Sum Query 2D - Immutable

Given a 2D matrixmatrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1,col1) and lower right corner (row2,col2). The above rectangle (with the red b...

2016-11-08 06:29:00 53

转载 Leetcode 303. Range Sum Query - Immutable

Given an integer arraynums, find the sum of the elements between indicesiandj(i≤j), inclusive. Example: Given nums = [-2, 0, 3, -5, 2, -1] sumRange(0, 2) -> 1 sumRange(2, 5) ->...

2016-11-08 05:19:00 70

转载 Leetcode 200. Number of Islands

Given a 2d grid map of'1's (land) and'0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may a...

2016-11-07 23:47:00 53

空空如也

空空如也

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

TA关注的人

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