Skip to content

Instantly share code, notes, and snippets.

View LEEY19's full-sized avatar

LEEY19

  • Singapore
View GitHub Profile
@LEEY19
LEEY19 / answer1.js
Last active July 2, 2020 16:21
Oursky PT 2020 (Yong En)
function questionOne(first_arr, second_arr) {
var first_set = new Set(first_arr);
var second_set = new Set(second_arr);
var is_subset = true;
second_set.forEach(val => {
if (!first_set.has(val)) {
is_subset = !is_subset;
};
});