Skip to content

Instantly share code, notes, and snippets.

@treejamie
Forked from aymanosman/challenges.md
Last active February 6, 2019 12:17
Show Gist options
  • Save treejamie/5914291a4b6e82735e8679d517052810 to your computer and use it in GitHub Desktop.
Save treejamie/5914291a4b6e82735e8679d517052810 to your computer and use it in GitHub Desktop.
interview #1 questions

Fizzbuzz

1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
16
17
Fizz
19
Buzz
Fizz
22
23
Fizz
Buzz
26
Fizz
28
29
FizzBuzz

Sum1

sum1([1, 2, 3]) == 6
sum1([1,2,3,5,8,13,21,34]) == 87

Palindrome

is_palindrome("racecar") == true
is_palindrome("lamp") == false
is_palindrome("tenet") == true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment