Skip to content

RuiqiZheng/leetcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode solutions in Java

My accepted leetcode solutions to some of the common interview problems.

The key point is how to minimize the space complexity

turn arraylist into array: merged.toArray(new int[merged.size()][2]);

How to slove it with stack?

int missingNumber(vector<int>& nums) {
    int result = 0
    for (int i = 0; i < nums.size(); ++i) 
        result += (i+1)-nums[i];
    }
    return result;
}

About

Leetcode solutions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%