Stack

Description: Something

#javascript #easy Likes 0 Comments 0

Description: Returns the count of how many two number pairs will equal the sum of a given number.

#array #medium Likes 0 Comments 0

Description: Given an array of integers, which represent containers of water with various water levels, and a number of empty bottles with a max-capacity, what ...

#Greedy #medium Likes 0 Comments 0

Description: How to make the most of your remaining years? This example of a "Greedy Algorithm" will tell you just that. Given an array (A) of integers that rep...

#Greedy #easy Likes 0 Comments 0

Description: Takes in integer and array, and removes all instances of that integer from array.

#array #easy Likes 0 Comments 0
Vowel Count

Description: Takes a string and returns the number of vowels ('a', 'e', 'i', 'o', 'u').

#string #easy Likes 0 Comments 0

Description: Returns the count of how many times an integer N appears in an array.

#array #easy Likes 0 Comments 0

Description: I like this algorithm. It will take an array of numbers and randomize the elements with one execution. I believe it will work with any type of elem...

#array #easy Likes 0 Comments 0

Description: Uses a nested for-loop to remove duplicate values from the array, but only if duplicates exist.

#Array #medium Likes 2 Comments 0
Flatten Array

Description: Takes an array of arrays (and arrays) and flattens them into one master array.

#array #medium Likes 2 Comments 1
Sum2One

Description: Takes a number and adds the individual digits together. It continues to do this until the sum of the digits is a single digit number. E.g. 19 is 1+...

#string #medium Likes 3 Comments 0
Plus One

Description: Takes an array of numbers and adds one to the number the array represents. [1,2,3] = 123 + 1. So the result will be [1,2,4]

#array #medium Likes 3 Comments 5