Algorithm

Algorithm

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

Array

Array

[LeetCode 81] Search in Rotated Sorted Array II [Java]

 2018-03-16

1. Description Follow up for "Search in Rotated Sorted Array": What if duplicates are allowed? Would this affect the run-time complexity? How and w...


 NOTHING
 1,249 views

Array

[LeetCode 80] Remove Duplicates from Sorted Array II [Java]

 2018-03-10

1. Description Follow up for "Remove Duplicates": What if duplicates are allowed at most twice? 2. Example Given sorted array nums = [1,1,1,2,2,...


 NOTHING
 1,166 views

Array

[LeetCode 88] Merge Sorted Array [Java]

 2018-03-06

1. Description Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: You may assume that nums1 has eno...


 NOTHING
 664 views

Array

[LeetCode 34] Search for a Range [Java]

 2018-01-25

1. Description Given an array of integers sorted in ascending order, find the starting and ending position of a given target value. Your algorithm'...


 NOTHING
 591 views

Array

[LeetCode 33] Search in Rotated Sorted Array [Java]

 2018-01-23

1. Description Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5...


 NOTHING
 535 views

Array

[LeetCode 189] Rotate Array [Java]

 2017-12-22

1. Description Rotate an array of n elements to the right by k steps. 2. Example with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [...


 NOTHING
 767 views

Array

[LeetCode 167] Two Sum II – Input array is sorted [Java]

 2017-11-23

1. Description Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target nu...


 NOTHING
 684 views

Array

[LeetCode 27] Remove Element [Java]

 2017-11-22

1. Description Given an array and a value, remove all instances of that value in-place and return the new length. Do not allocate extra space for a...


 NOTHING
 559 views

Array
leetcode

[LeetCode 561] Array Partition I [Java] [Beats : 90.95%]

 2017-09-25

1. Description Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) w...


 NOTHING
 1,104 views

Array
leetcode

[LeetCode 565] Array Nesting [Java] [Runtime : 37MS]

 2017-09-24

1. Description A zero-indexed array A consisting of N different integers is given. The array contains all integers in the range [0, N - 1]. Sets S[...


 NOTHING
 783 views

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

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

What do you want to search...

