Input is a string like "AAAAABBCCAA" and it should print "5A2B2C2A". 5 being the continuous number of occurance for character 'A'. Same is with other characters also.
Senior Interview Questions
341,984 senior interview questions shared by candidates
Maslow's Hierarchy Theory..??
What is the output of below program. var a = [1,2,3,4] for (var i=0; i<a.length; i++){ setTimeout(function(){ console.log(i) },1000) } ( My Ans : it will print 4 5 times as it will store the latest reference) Next They asked me : How can i print 1,2,3,4 by changing some code in above example
Our project process is broken. We are the testing team. We are falling behind, and we don't have enough resources to keep up and we cannot afford to bring on more resources. The development team keeps throwing more work at us and changes. What would you do to fix the situation.
all situational stuff like how did you manage a situation where you made bad judgement orginally
How do you handle people who take credit for your work
How do you come up with an "innovative idea"? For example, before the airplane people would have asked for a faster car, how do you come up with that airplane kind of idea?
Cap One is usually collects default accts by calling these customers. Usually 15% of customers pay their accounts off. Now, they are consdering giving an offer to the customers for paying 60% amount. Should we do that or not. Abg balance is $2000. This offer will impact now, that only 10% customers will pay in full and 10% will pay 60% offer. part(b)- since we are stealing our own customers by giving an offer, what is the cannibalization rate? and what is the max. cannibalization rate that Capital One can do to break even?
Ok now assume that the day is split into surge and non-surge demand hours. Non-surge demand lasts 4 hours and has 800 rides. Surge demand lasts another 4 hours and has 1,600 rides. Assume you can only hire drivers for the full day. How much would you need to charge during surge hours to breakeven on your profit from the first question?
The company manufactures 3D Printers. Who should they target selling it to and which one will be more profitable? End customers directly or through retailers? Interviewer asked me to plot graph to show the volume of sales with respect to time for each scenario. Asked to calculate the profit in 2years giving fixed cost 6.6m, over head costs 2.4m/yearly, cost of the item=$250 price of the item sold=$500 and no of units= 2000/monthly. Altered the numbers: when 25% of printers breakdown and cost of repairing each one is 200$. What are the additional printers to be sold to make the profit in 1 year?
Viewing 391 - 400 interview questions