GithubHelp home page GithubHelp logo

woonketwong / algorithm-questions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yining1023/algorithm-questions

1.0 2.0 0.0 307 KB

answers for algorithm-questions from Leetcode in Javascript

JavaScript 100.00%

algorithm-questions's Introduction

algorithm-questions

Answers for algorithm-questions from Leetcode in Javascript.

    1. Magical String
    1. Find Permutation
    1. Sort Characters By Frequency
    1. Maximum XOR of Two Numbers in an Array
    1. Diagonal Traverse
    1. Next Greater Element II
    1. Next Greater Element I
    1. Boundary of Binary Tree
    1. Longest Word in Dictionary through Deleting
    1. Beautiful Arrangement
    1. Word Abbreviation
    1. 01 Matrix
    1. Lonely Pixel I
    1. Lonely Pixel II
    1. Output Contest Matches
    1. The Maze II
    1. The Maze
    1. Minimum Height Trees
    1. Serialize and Deserialize Binary Tree
    1. Range Sum Query 2D - Immutable
    1. Binary Tree Vertical Order Traversal
    1. Pow(x, n)
    1. Binary Tree Inorder Traversal
    1. Kth Smallest Element in a BST
    1. Verify Preorder Serialization of a Binary Tree
    1. Verify Preorder Serialization of a Binary Tree
    1. Kth Smallest Element in a Sorted Matrix
    1. Evaluate Division
    1. Encode and Decode TinyURL
    1. Insert Delete GetRandom O(1) - Duplicates allowed
    1. Insert Delete GetRandom O(1)
    1. Range Addition
    1. Super Ugly Number
    1. Combination Sum IV
    1. Target Sum
    1. Perfect Squares
    1. Queue Reconstruction by Height
    1. Game of Life
    1. 3Sum Smaller
    1. Wiggle Sort II
    1. Wiggle Sort
    1. Android Unlock Patterns
    1. Relative Ranks
    1. Detect Capital
    1. Reverse String II
    1. Find Mode in Binary Search Tree
    1. Minimum Absolute Difference in BST
    1. Heaters
    1. Find All Numbers Disappeared in an Array
    1. Number of Boomerangs
    1. Max Consecutive Ones II
    1. Max Consecutive Ones
    1. Power of Three
    1. Guess Number Higher or Lower
    1. Repeated Substring Pattern
    1. Valid Word Abbreviation
    1. Power of Two
    1. Valid Word Square
    1. Longest Palindrome
    1. Closest Binary Search Tree Value
    1. Island Perimeter
    1. Missing Number
    1. Nth Digit
    1. Paint Fence
    1. Binary Watch
    1. Find the Difference
    1. Flip Game II
    1. Flip Game
    1. Logger Rate Limiter
    1. Strobogrammatic Number II
    1. Strobogrammatic Number
    1. Reverse Vowels of a String
    1. Reverse String
    1. Add Strings
    1. Longest Common Prefix
    1. Number of Islands II
    1. Linked List Cycle II
    1. Ugly Number II
    1. Ugly Number
    1. Merge k Sorted Lists
  • Rehashing
    1. Flatten Nested List Iterator
  • Top k Largest Numbers
    1. Implement Queue using Stacks
    1. Kth Largest Element in an Array
  • Kth Largest Element II
  • K Closest Points
  • High Five
    1. Nested List Weight Sum II
    1. Nested List Weight Sum
    1. Find the Duplicate Number
  • Remove Duplicate Numbers in Array
    1. 3Sum Closest
    1. 3Sum
  • Sort Colors II
    1. Sort Colors
    1. Binary Tree Zigzag Level Order Traversal
    1. Binary Search Tree Iterator
    1. Unique Word Abbreviation
    1. Encode and Decode Strings
    1. Plus One
    1. Decode String
    1. Missing Ranges
    1. Moving Average from Data Stream
    1. Bomb Enemy
    1. Zigzag Iterator
    1. Sentence Screen Fitting
    1. Range Sum Query 2D - Mutable
    1. Longest Substring with At Most Two Distinct Characters
    1. License Key Formatting
    1. Longest Absolute File Path
  • Sort Colors
  • Partition Array
    1. Two Sum II - Input array is sorted
  • Two Sum Closest
  • Two Sum VII - Difference equals to target
    1. Two Sum III - Data structure design
    1. Median of Two Sorted Arrays
    1. Sort List
    1. Linked List Cycle
    1. Merge Two Sorted Lists
    1. Word Ladder
    1. Word Break
    1. Palindrome Permutation
    1. Combination Sum
    1. Palindrome Partitioning
    1. Shortest Distance from All Buildings
    1. Clone Graph
    1. Graph Valid Tree
    1. Course Schedule II
    1. Course Schedule
    1. Validate Binary Search Tree
    1. Lowest Common Ancestor of a Binary Tree
    1. Binary Tree Paths
    1. Path Sum II
    1. LRU Cache
    1. Reverse Linked List II
    1. Reverse Linked List
    1. Populating Next Right Pointers in Each Node II
    1. Populating Next Right Pointers in Each Node
    1. Trapping Rain Water
    1. Unique Paths II
    1. Unique Paths
    1. Min Stack
    1. Move Zeroes
    1. Copy List with Random Pointer
    1. Best Time to Buy and Sell Stock
    1. Best Time to Buy and Sell Stock II
    1. Best Time to Buy and Sell Stock III
    1. Maximum Subarray
    1. Add Two Numbers II
    1. Add Two Numbers
    1. Merge Intervals
    1. Search a 2D Matrix II
    1. Search a 2D Matrix
    1. Flatten Binary Tree to Linked List
    1. Intersection of Two Linked Lists
    1. Delete Node in a Linked List
    1. Binary Tree Level Order Traversal
    1. Binary Tree Longest Consecutive Sequence
  • Minimum Subtree
  • Binary Tree Longest Consecutive Sequence
    1. Two Sum
    1. Binary Tree Maximum Path Sum
    1. Binary Tree Preorder Traversal
    1. Balanced Binary Tree
    1. Maximum Depth of Binary Tree
    1. Search in Rotated Sorted Array
    1. First Bad Version
    1. Find Peak Element
    1. Find Minimum in Rotated Sorted Array
    1. Sqrt(x)
    1. Permutations II
    1. Permutations
    1. Subsets II
    1. Subsets
    1. Implement strStr()

algorithm-questions's People

Contributors

yining1023 avatar

Stargazers

 avatar

Watchers

James Cloos avatar Woon Ket Wong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.