Skip to content

Instantly share code, notes, and snippets.

View alodahl's full-sized avatar

Alina L. alodahl

  • San Francisco
View GitHub Profile
@alodahl
alodahl / dummy-multi-layer-page-reveal-effect.markdown
Created May 1, 2019 03:52
Dummy Multi Layer Page Reveal Effect
@alodahl
alodahl / Part I, #2
Created December 10, 2018 22:20
Week 4 Interview Challenge
A. Write a function that takes a single string as an argument, and must return A, B, C, or D depending on the following criteria:
If the first character in string is in the set {a,e,i,o,u}, then return A.
If the first character in string is in the set {b,c,d,f,g}, then return B.
If the first character in string is in the set {h,j,k,l,m}, then return C.
If the first character in string is in the set {n,p,q,r,s,t,v,w,x,y,z}, then return D.
B. What is the big O notation for the algorithm you just wrote?
@alodahl
alodahl / Part I, #1
Last active December 10, 2018 23:03
Week 4 Interview Challenge
A. Write a JavaScript program to sum the multiples of 5 and 7 under 1000. Your function must use a while loop.
B. Write the Big O notation of your new function as a comment in the same file.
@alodahl
alodahl / Part II, question 2
Last active November 30, 2018 00:54
Week 3 Whiteboarding Challenge
1. Create an array of numbers.
2. Without using any math operators, write 5 statements:
- Return the first item in the array
- Return the last item in the array
- Add a new item to the end of the array
- Add an array to the beginning of the array.
- Return the first item from the first item in the array.
@alodahl
alodahl / Part II, question 1
Last active November 30, 2018 00:27
Week 3 Whiteboarding Challenge
Create a function that calculates how many minutes have elapsed from midnight until right now. The function should still return an accurate answer, even if you ran it a few minutes or hours later.
@alodahl
alodahl / Part I, question 2
Created November 29, 2018 23:32
Week 3 Whiteboarding Challenge
Write a function that accepts a string. The function should return the last character in the string.
@alodahl
alodahl / Part I, question 1
Last active December 22, 2018 21:44
Week 3 Whiteboarding Challenge
Write a function that accepts 2 numbers as arguments. The function should return the sum of the two numbers.
@alodahl
alodahl / fizz-buzz.markdown
Created November 11, 2018 04:07
Fizz Buzz
@alodahl
alodahl / sdf
Created November 9, 2018 00:49
sdf
sdf
@alodahl
alodahl / sdfsdf
Last active November 10, 2018 07:49
sdfsdf
sdfsdf