Algorithm

Algorithm



  • Home
  • Algorithm
    • LeetCode
    • LintCode
    • HDUOJ
  • Online Judge
  • Archive


Array

Array
leetcode

[LeetCode 581] Shortest Unsorted Continuous Subarray [Java] [Runtime : 22MS]

 2017-09-19

1. Description Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the wh...


 NOTHING
 986 views

Array

[LintCode 464] Sort Integers II [Java]

 2017-08-22

1. Description Given an integer array, sort it in ascending order. Use quick sort, merge sort, heap sort or any O(nlogn) algorithm. 2. Example I...


 NOTHING
 1,210 views

Array

[LintCode 373] Partition Array by Odd and Even [C++] [Runtime : 13MS]

 2017-07-26

1. Description Partition an integers array into odd number first and even number second. 2. Submission Details 3. Code [restabs alignment="osc-tab...


 NOTHING
 1,201 views

Array

[LintCode 212] Space Replacement [C++] [Runtime : 10MS]

 2017-07-21

1. Description Write a method to replace all spaces in a string with %20. The string is given in a characters array, you can assume it has enough s...


 NOTHING
 1,222 views

Array

[LeetCode 74] Search a 2D Matrix [Java] [Runtime : 1MS]

 2017-07-20

1. Description Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in eac...


 NOTHING
 1,286 views

Array
leetcode

[LeetCode 217] Contains Duplicate [Java] [Beats : 99.39%]

 2017-07-19

1. Runtime Distribution 2. Submission Details 3. Description Given an array of integers, find if the array contains any duplicates. Your function...


 NOTHING
 1,245 views

Array
leetcode

[LeetCode 380] Insert Delete GetRandom O(1)[Java] [Beats : 98.10%]

 2017-07-18

1. Runtime Distribution 2. Submission Details 3. Description Design a data structure that supports all following operations in average O(1) time....


 NOTHING
 1,297 views

Array
leetcode

[LeetCode 57] Insert Interval [C] [Runtime : 6 MS]

 2017-06-30

1. Runtime Distribution 2. Submission Details 3. Description Given a set of non-overlapping intervals, insert a new interval into the intervals (...


 NOTHING
 1,672 views

Array
leetcode

[LeetCode 42] Trapping Rain Water [C] [Runtime : 6 MS]

 2017-06-24

1. Runtime Distribution 2. Submission Details 3. Description Given n non-negative integers representing an elevation map where the width of each ...


 NOTHING
 1,473 views

Array
leetcode

[LeetCode 41] First Missing Positive [C] [Runtime : 3 MS]

 2017-06-19

1. Runtime Distribution 2. Submission Details 3. Description Given an unsorted integer array, find the first missing positive integer. Your algor...


 NOTHING
 1,248 views


Load More
Copyright © 2017- 2025. DunSO All rights reserved.

  • Home
  • Algorithm
    • LeetCode
    • LintCode
    • HDUOJ
  • Online Judge
  • Archive

What do you want to search...

