Skip to content

Instantly share code, notes, and snippets.

View imaginate's full-sized avatar

Adam Smith imaginate

  • San Jose, CA
View GitHub Profile
@imaginate
imaginate / find-duplicate-objects.js
Last active August 29, 2015 14:19
An efficient way to find duplicates in JavaScript - specifically the duplicate objects of two arrays. Time: O(m) | Space: O(n)
/**
* -----------------------------------------------
* Function (findDuplicates)
* -----------------------------------------------
* @desc Find the duplicate objects in two arrays. With m representing
* the length of the longest array and n the length of both arrays
* combined, this function operates in - Time: O(m) | Space: O(n).
* @param {Array<Object>} arr1 - The first array.
* @param {Array<Object>} arr2 - The second array.
* @return {Array<Object>} The duplicates.
@imaginate
imaginate / learning-resources.md
Last active December 19, 2018 21:37
Resources for learning about technical topics like computer science, programming, web development, algorithms, and more.

Grow Your Mind!

  • Computer Science: Offers in-depth resources for learning and improving your skills with computer science, programming, algorithms, data structures, and more.
  • Operating Systems: Covers operating systems and their tools.
  • Web Development: Offers abundant resources for topics like browsers, CSS, DOM, HTML, JavaScript, Node.js, PHP, and Python. It contains many different manuals, tools, libraries, shortcuts, and more.

Computer Science

CS Education