Citi Flashcards
Write a recursive algorithm finding the height of a binary tree.
https://learn.co/lessons/recursion-readme
Why do you want to work at citi
- Alumni
- Job desc
types of data structures:
- Arrays
-Objects
-Queues (FIFO)
-Linked List ( [1][ ] –> [2][ ] –> [3][ ] –> …)
-Trees
-Tries
-Graphs
-Hash tables
-
https://www.educative.io/blog/javascript-data-structures
how I would implement a certain class in using JS OOP
CLASS CONSTRUCTOR KEYWORD NOW AVAIL
class User { constructor(name, email) { this.name = name; this.email = email; }
sayHello() {
console.log(Hello, my name is ${this.name}
);
}
}
let sarah = new User('sarah', 'sarah@gmail.com'); sarah.sayHello();
what I enjoyed about the languages I programmed in
- Ruby - simple, active, benevolant, do more in less time
What would people say are your strengths and weaknesses?
-Needing a challenge/engagement/meaning
How would you design a web server to handle fetch requests?
https://dmitripavlutin.com/javascript-fetch-async-await/
const fetcher = new FetchDecoratorBadStatus( new Fetcher() );
async function fetchMoviesBadStatus() { const response = await fetcher.doFetch('/movies'); const movies = await response.json(); return movies; }
fetchMoviesBadStatus().then(movies => { // When fetch succeeds movies; }).catch(error => { // When fetch ends with a bad HTTP status, e.g. 404 error.message; });
Describe your current and future career goals.
I just want to build useful things, and eventually architect useful things, increasing in scope and responsibility as I go.
How many years do you see yourself in this role?
All I care about today is joining a good team of good people and proving my value. I’m not thinking about years or an exit– I’m thinking about what can I do to earn and capitalize on opportunities.
Why do I think I will be a better candidate than someone else?
- Pedigree
- Upside
- Want to be here
- Character
OOP design a parking lot
Classes (att) - parkingLot(spacesGrid?), vehicle(size, fare), space(isOpen, currentFare)
Functions - farecalc, park, leave, optSpace
OOP design a parking lot
Classes (att) - parkingLot(spacesGrid?), vehicle(size, fare), space(isOpen, currentFare)
Functions - farecalc, park, leave, nearestSpace
OOP design a parking lot
Classes (att) - parkingLot(spacesGrid?), vehicle(size, fare), space(isOpen, currentFare)
Functions - farecalc, park, leave, nearestSpace, tow
What preference do you have for front end vs back end dev.
I enjoy doing it all, lately I’ve been enjoying algo problems a lot but I’m happy to work on the front, back, or both
Explain const
- type of es6 variable
- properties of arrays and objects can change
- number or string cannot be changed