Skip to content

kingshuknandy2016/javascript-problems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of contents

Objects and Flattening

  1. Object Basics, Dynamically Assign Properties, Checking if property exist, looping across keys
  2. Problems - Object is Empty, Sum Object Properties, Multiply Numeric Properties
  3. Object Array - Filter Employee by age, and add additional property
  4. Flatten Map - Write a function that takes a hierarchical map of properties and converts it to a single, flattened map, with the different levels separated by a forward slash ('/')
  5. Flatten Array - Flatten Array
  6. Function.Prototype.bind - Bind
  7. Function.Prototype.call - Call
  8. Function.Prototype.apply - Apply
  9. Object Practice - Object with bracket keys and iteration
  10. Prototype - Constructor functions and prototype property
  11. Prototype Inheritance - User Admin inheritance and closure counter
  12. call, apply, bind - call apply bind combined examples
  13. Different Ways to Create Objects - Constructor, literal, Object.create, class

Concepts

  1. Closure Example - Closure
  2. Currying - Multiply multiply(2)(3)(4) - Multiply multiply(2)(3)(4)
  3. Hoisting and Closures Problems
  4. Simple Callback - Callback
  5. Child Process - Spawn - Spawn
  6. Debouncing - Debouncing
  7. Throttling - Throttling
  8. Counter Using Closure - Counter factory with private count
  9. Promises - Promises and async await
  10. Streams - Node.js readable writable streams pipe
  11. Flatten Array Practice - Flatten nested array
  12. Flatten Object Practice - Flatten nested object

Array

  1. Even and Odd
  2. Array Sorting
  3. Moving zeros to end
  4. All possible combinations out of an array - subsets
  5. Palindrome check
  6. Array splice slice reduce
  7. Remove duplicates, plus one, container water, subsets, permutations
  8. Unequal triplets, remove duplicates, move zeroes
  9. Sort, move zeroes, remove duplicates, permutations, subarrays
  10. Sort descending and move zeroes
  11. Even odd split, weave arrays, missing number
  12. Map set get iterate
  13. Sort descending
  14. Sort by frequency
  15. Reduce sum palindrome LCP missing element
  16. Find non repetitive elements
  17. Bubble sort
  18. Merge two sorted arrays

Strings

  1. Longest Common Prefix
  2. Occurrence of Word , Max word
  3. Reverse string indexOf substring slice
  4. Valid anagram and palindrome phrase
  5. LCP group anagrams valid parentheses strstr first unique char frequency
  6. LCP reverse longest palindrome longest substring
  7. All substrings and longest common prefix
  8. Longest palindromic substring
  9. Longest substring without repeating characters
  10. Longest substring with at most K distinct characters
  11. Find all anagram indices
  12. Generate all substrings
  13. Character frequency count string
  14. Anagram check and queue

Backtracking

  1. Subsets with duplicates
  2. Combination Sum
  3. Letter Case Permutation
  4. Letter Case Permutation variant
  5. Permutations swap backtracking
  6. Permutations with duplicates
  7. Subsets and permutations
  8. Palindrome Partitioning

Recursion and Fundamentals

  1. Array product and recursive sum
  2. Bitwise XOR
  3. Hoisting temporal dead zone

Practice 3

  1. Find non repetitive elements

New Practice 26

  1. Return order sample data
  2. Flatten return order into per item rows
  3. Event loop sync setTimeout promise microtask
  4. Counter using closures
  5. Calculator using closure currying

Promises

  1. Callback adult checker
  2. Promise with async await
  3. Promise.all API

Misc

  1. 100 doors locker puzzle
  2. Parking slot assignment

Practice Set (blank stubs)

Copy src/practice-set-all/ to practice every problem from scratch (no solutions). See practice-set-all/README.md.

About

Javascript Coding Problems

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors