Skip to content

Latest commit

History

736 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

(2017-06-22) This repository contains my working solutions to the problems found on LeetCode.

Algorithms

Arrays

#TitleSolutionTimeSpaceDifficultyNotes
66Plus oneC++ / JavaO(n)O(1)Easy
349Valid Perfect SquareC++O(n)O(n)Easy
350Valid Perfect Square IIC++O(n)O(n)Easy

Bit Tricks

#TitleSolutionTimeSpaceDifficultyNotes
371Sum of Two IntegersC++O(log n)O(1)Easy

Design Patterns

#TitleSolutionTimeSpaceDifficultyNotes
341Flatten Nested List IteratorC++O(1) / O(n)O(n)Medium

Dynamic Programing

#TitleSolutionTimeSpaceDifficultyNotes
375Guess Number Higher or Lower IIC++O(n^3)O(n^2)Medium

Math

#TitleSolutionTimeSpaceDifficultyNotes
342Power of FourC++O(log n)O(1)Easy
343Integer BreakJavaO(log n )O(1)Medium
367Valid Perfect SquareC++O( sqrt(n) )O(1)Medium

Search

#TitleSolutionTimeSpaceDifficultyNotes
347Top K Frequent ElementsC++O(n)O(n)Medium
373Find K Pairs with Smallest SumsC++O(k log k)O(k)Medium
374Guess Number Higher or LowerC++O(log n)O(1)Easy

Strings

#TitleSolutionTimeSpaceDifficultyNotes
344Reverse StringJavaO( n )O(n)Easy
345Reverse Vowels of a StringC++O( n )O(n)Easy

Trees and Graphs

#TitleSolutionTimeSpaceDifficultyNotes
133Clone GraphC++O(V+E)O(V)MediumBFS

About

LeetCode Problems' Solutions

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages