Algorithm

Algorithm

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

BIT

BIT
leetcode

[LeetCode 600] Non-negative Integers without Consecutive Ones [Java]

 2017-09-14

1. Description Given a positive integer n, find the number of non-negative integers less than or equal to n, whose binary representations do NOT co...


 NOTHING
 982 views

BIT
leetcode

[LeetCode 231] Power of Two [Java] [Runtime : 2MS]

 2017-08-31

1. Description Implement pow(x, n). 2. Runtime Distribution 3. Submission Details 4. Example Input 16 Output: True 5. Code [restabs alignme...


 NOTHING
 553 views

BIT
leetcode

[LeetCode 201] Bitwise AND of Numbers Range [Java] [Runtime : 9MS]

 2017-08-31

1. Description Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive. For e...


 NOTHING
 568 views

BIT
leetcode

[LeetCode 190] Reverse Bits [Java] [Runtime : 3MS]

 2017-08-31

1. Description Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 0000001010010100000111...


 NOTHING
 650 views

BIT
leetcode

[LeetCode 191] Number of 1 Bits [Java] [Runtime : 1MS]

 2017-08-31

1. Description Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight). For ex...


 NOTHING
 698 views

BIT
leetcode

[LeetCode 137] Single Number II [Java] [Runtime : 9MS]

 2017-08-31

1. Description Given an array of integers, every element appears three times except for one, which appears exactly once. Find that single one. Note...


 NOTHING
 657 views

BIT
leetcode

[LeetCode 136] Single Number [Java] [Runtime : 1MS]

 2017-08-30

1. Description Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a lin...


 NOTHING
 605 views

Copyright © 2017- 2023. DunSO All rights reserved.

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

What do you want to search...

