It has been always fun and challenging to create a better resume which eventually gets short-listed by good companies. Actually resume is very important and it plays almost 25% of your new career opportunity. There are plenty of sources available online to help us create — but it actually overwhelmed!


Events

Photo by Michael D Beckwith on Unsplash

Event manager

Write event emitter-base class that allows you to add event listeners

https://netbasal.com/javascript-the-magic-behind-event-emitter-cce3abcbcef9

Custom events

Events can be created with the Event constructor as follows:

let event = new Event(type[, options]);

Debounce

Throttling

Reference

https://javascript.info/dispatch-events


Closure

Photo by Martin Sanchez on Unsplash

Currying

Borrowing

sum(a, b)/ sum(a)(b)

Caching

Once method (implement a function that can be called only once)


Arrays, Objects, and Strings are commonly used types that we iterate using ‘for’. ‘for…in’, ‘for…of’ statements.

Photo by Sean Alabaster on Unsplash

Array iteration

  1. for

Repeats until a specified condition evaluates to false.

for ([init]; [condition]; [increment])

“All the three blocks in the for loop can be omitted. But should be declared before.”

2. for…of

for (variable…


Functions

Photo by AZGAN MjESHTRI on Unsplash

Recursive function example 1 — factorial

Recursive function example 2 — Fibonacci

Recursive function example 3 — Decimal to binary conversion

Pascal triangle

I liked the below reference to generate the pascal triangle one row at a time using 2 functions:https://medium.com/javascript-in-plain-english/algorithms-101-pascals-triangle-in-javascript-9fbd9032871


Strings coding questions and answers

Photo by Tim Mossholder on Unsplash

String Reverse

Reverse Words

Palindrome

Anagram

Isomorphic

Given a sentence, “Hello how are you HELLO”. Find the minimum distance between two words. Given input: hello, you. Output: 1. The input words are case insensitive (levenshteinDistance (s, t))

https://en.wikibooks.org/wiki/Algorithm_Implementation/Strings/Levenshtein_distance

Array related questions and answers from brute force to better optimal way of achieving Big O

Photo by Ulises Baga on Unsplash

Find the maximum value of an array

Remove duplicate from an array/ unique array

Get duplicates from an array

Flatten the array

Find the median value of an array

Find two sum of an array twoSum(arr, sum)

Maximum consecutive sum of integers in an array

Union of arrays (merge two arrays without duplicates)

Intersection of arrays/ find common values of arrays (multidimensional)

Sathish Kumar Arumugam

Senior User Interface Engineer at Aruba Networks

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store