Algorithm

Algorithm

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

Digital

Digital

[LeetCode 258] Add Digits [Java]

 2017-11-23

1. Description Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. 2. Example Given num = 38, t...


 NOTHING
 982 views

Digital

[LeetCode 334] Increasing Triplet Subsequence [Java]

 2017-11-06

1. Description Given an unsorted array return whether an increasing subsequence of length 3 exists or not in the array. Formally the function shoul...


 NOTHING
 997 views



Count Number of 1 in a Binary Integer

 2017-06-16

1. Description Calculates the number of 1 in a binary integer 2. Example 11111110100 -> 8 001011010 -> 4 3. Code [restabs alignment="osc-tabs...


 NOTHING
 825 views

Digital
leetcode

[LeetCode 16] 3Sum Closest [C] [Runtime : 6 MS]

 2017-06-08

1. Description Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of t...


 NOTHING
 1,702 views

Digital
leetcode

[LeetCode 15] 3Sum [C] [Runtime : 76 MS]

 2017-06-07

1. Description Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which...


 NOTHING
 1,530 views

Digital
leetcode

[LeetCode 13] Roman to Integer [C++]

 2017-06-05

1. Description Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 2. Example input s = ...


 NOTHING
 1,369 views

Digital
leetcode

[LeetCode 12] Integer to Roman [C, C++, C#] [Runtime : 49 MS]

 2017-06-04

1. Description Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 2. Example input num ...


 NOTHING
 1,451 views

Digital
leetcode

[LeetCode 9] Palindrome Number [C]

 2017-06-02

1. Description Determine whether an integer is a palindrome. Do this without extra space. 2. Runtime Distribution 3. Submission Details 4. Exampl...


 NOTHING
 1,455 views

Digital
leetcode

[LeetCode 8] String to Integer (atoi) [C] [Runtime : 15 MS]

 2017-06-01

1. Description Implement atoi to convert a string to an integer. 2. Explanation The function first discards as many whitespace characters as necess...


 NOTHING
 1,656 views

Digital
leetcode

[LeetCode 7] Reverse Integer [C] [Runtime : 15 MS]

 2017-05-31

1. Description Reverse digits of an integer. 2. Example x = 123, return 321 x = -123, return -321 3. Code [restabs alignment="osc-tabs-right"...


 NOTHING
 1,508 views

Copyright © 2017- 2025. DunSO All rights reserved.

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

What do you want to search...

