Skip to content

AnnieZhou08/LeetAlgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetAlgo

I'm an Honours Computer Science student at University of Waterloo, currently in my 1B term, so I'm still an amateur. Here are my attempts at some of the LeetCode algorithm questions.

Level (In order of acceptance rate)

Easy:

  • Hamming Distance - hammingDistance.java
  • Find All Numbers Disappeared in an Array - findDisappearedNumbers.java
  • Fizz Buzz - fizzBuzz.java
  • Reverse String - reverseStringI.java & reverseStringII.java
  • Island Perimeter - islandPerimeter.java
  • Nim Game - canWinNim.java
  • Single Number - singleNumber.java
  • Sum of Two Integers - getSum.java
  • Maximum Depth of Binary Tree - maxDepth.java
  • Add Digits - addDigits.java & addDigitsI.java
  • Assign Cookies - findContentChildren.java
  • Move Zeroes - moveZeroes.java
  • Minimum Moves to Equal Array Elements - minMoves.java
  • Ransom Note - canConstruct.java
  • Sum of Left Leaves - sumOfLeftLeaves.java
  • Intersection of Two Arrays - intersection.java
  • Delete Node in a Linked List - deleteNode.java
  • First Unique Character in a String - firstUniqueChar.java
  • Excel Sheet Column Number - titleToNumber.java
  • Valid Anagram - isAnagram.java
  • Majority Element - majorityElement.java
  • Longest Palindrome - longestPalindrome.java
  • Contains Duplicate - containsDuplicates.java
  • Intersection of Two Arrays - intersect.java
  • Roman to Integer - Int-Roman.java
  • Number of Boomerangs - numberOfBoomerangs.java
  • Repeated Substring Pattern - repeatedSubstringPattern.java
  • Power of Two - isPowerOfTwoI.java & isPowerOfTwoII.java & isPowerOfTwoIII.java
  • Happy Number - isHappy.java
  • Number of Segments in a String - countSegments.java
  • Remove Duplicates from Sorted List - removeDuplicatesSorted.java & remove Duplicates.java
  • Path Sum III - pathSum.java
  • Climbing Stairs - climbStairsI.java & climbStairsII.java

Releases

No releases published

Packages

No packages published