nomadicdude
BAN USER
@chrisk - would the indexes participate in the dot product, or is it first number for array 1 dot first number is array 2 regardless of their relative location?
- nomadicdude July 19, 2017I think the interviewer is looking for a Iterator class with functions like hasNext() and next(). Otherwise it is too simple for an FB interview. You can google search Iterator definitions .., the code snippet
is for Java
//class variables
long current = 1;
long prev = 0;
public void reset () {
current = 1;
prev = 0;
}
@Override
public boolean hasNext() {
//will always have a next
//alternatively you could get some brownie points by returning false when you
//reach the largest positive 'long' number
return true;
}
@Override
public Long next() {
long temp = current;
current = prev + current;
prev = temp;
return temp;
}
RepColaraJoshi, Floor manager at Thomes
By profession, I am Floor manager in the Thomes store. I am passionate about astrology and read tronto cards, horoscopes ...
RepBruceKeter, HTML Experienced at 247quickbookshelp
Bruce , a pediatrician studies psychoanalysis where I try to understand children's needs and family dynamics. To do more research ...
Repreiviasmith, Malwarebytes customer service at ABC TECH SUPPORT
I am Reivia an outgoing and motivated Travel Consultant with over 5 years of experience in delivering professional travel related ...
Repaliciaable183, Analyst at 247quickbookshelp
I am an agent contract clerk who is responsible for handling the recruitment process. I advertise the vacancies for agents ...
Repharrytallh, Web Developer at Realty Depot
I am working as a Web developer . Here I create and maintain websites. Here I handle many responsibilities where I ...
Repameliahill344, abc at Detail Oriented
Professionally licensed Architect with a Master’s degree in Architecture and more than 4 years experience designing commercial buildings, offices ...
Repamritatorr, Paramedic at Capital Medical Billing
By profession, I am a paramedic in Chicago. I want to know about Indian ayurvedic treatment. I like to explore ...
Repbungayasorya, Accountant at BrowserStack
An archeologist is an expert on history who gains expertise through experience with historical documents and artifacts. The archaeological record ...
Open Chat in New Window
@majia168 - are these actual FB interview questions? How many times are you interviewing at FB :) you have at least 5-6 a day.
- nomadicdude October 27, 2017Good questions though.