Skip to content

Commit a12d572

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 1d866ae + a8209ff commit a12d572

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* Write a function isUnique that:
2+
Input: takes an array of integers
3+
Output: returns a deduped array of integers
4+
*/
5+
6+
// Solution using Set
7+
8+
const isUnique = (arr) => [...new Set(arr)];
9+
10+
// Test Cases
11+
12+
console.log(isUnique([1,1,1,2,2,2,2,3,3,3,3]) === [1,2,3]);

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,19 @@
11
# data-and-algorithms
2-
Let's go over data structures and algorithms together. We will use Cracking the Coding Interview as reference
2+
Let's go over data structures and algorithms together!
3+
We will use Cracking the Coding Interview as reference.
4+
5+
Feel free to add your solutions in your channel of your choice 😃
6+
7+
8+
Directions:
9+
* Fork this repo
10+
* Work on your fork
11+
* When you want to submit a solution, make a pr
12+
* To pull down the most recent changes on this repo, make this branch your upstream
13+
14+
Check out [Noé Lomelí](https://github.com/noelomeli)'s video for visual directions https://www.youtube.com/watch?v=sv97x3yPbrw
15+
16+
Follow along with the community on the #data-and-algorithms channel on our Slack
17+
Make sure to also check out our #python #ruby #javascript and #golang channels while you're there
18+
19+
If you haven't joined yet, request an invite here: techqueria.org/slack

0 commit comments

Comments
 (0)