Skip to content

About

Leetcode solutions

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

303 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

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

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages