Given a nested list of integers, returns the sum of all integers in the list weighted by their depth given the list {{1,1},2,{1,1}} the function should return 10 (four 1's at depth 2, one 2 at depth 1)
Software Engineer Interview Questions
466,538 software engineer interview questions shared by candidates
1. You have n doors in a row that are all initially closed. You make n passes by the doors starting with the first door every time. The first time through you visit every door and toggle the door (if the door is closed, you open it, if its open, you close it). the second time you only visit every 2nd door (door #2, #4, #6. third pass you toggle 3rd, 6th, 9th door. What state are the doors in after the last pass? which doors are open ?
What are the four pillars of OOP?
Debugging + System design: We wrote a simple (single-threaded) web crawler. Given a starting URL, it visits every reachable page. For each page, it determines the URLs of every static asset (images, javascript, stylesheets) on that page. The crawler returns a list with an entry for each crawled page and a listing of URLs for the assets found in that page.
Game related to coins : There are a bunch of coins on the table (about 20 I think) and 2 players have to pick 1-5 coins at each turn. The player who picks last coin wins the game. What will be your strategy if you are given the 1st chance to pick coins ?
Write a routine to print the numbers 1 to 100 and back to 1 again without using any loops.
Given a string and a dictionary. Break the string into meaningful words.
Design a ping-pong ranking system
Prove P = NP
Reverse a linked list without using temporary variables.
Viewing 691 - 700 interview questions