Skip to content

Instantly share code, notes, and snippets.

View garrettmmoore's full-sized avatar
:bowtie:

Garrett Moore garrettmmoore

:bowtie:
  • Los Angeles
View GitHub Profile
@garrettmmoore
garrettmmoore / settings.json
Created April 1, 2022 08:22
pt-run-settings.json
{
"properties": {
"search_result_preference": "most_recently_used",
"search_type_preference": "application_name",
"maximum_number_of_results": 10,
"open_powerlauncher": {
"win": false,
"ctrl": true,
"alt": false,
"shift": false,
@garrettmmoore
garrettmmoore / removeDuplicates.js
Last active March 5, 2022 09:48
Remove duplicate characters from string
/**
* Remove duplicate characters from a given string
* Time Complexity: O(N)
* @param {string} s - string of characters
* @return {string}
*/
const removeDuplicateLetters = s => {
// initialize new Set object with the given string to remove duplicates
const letters = new Set(s);