# 3K

College Intern interview questions shared by candidates

## Top Interview Questions

Sort: Relevance|Popular|Date

### Question1 /** * Given a nested list of integers, returns the sum of all integers in the list weighted by their depth * For example, given the list {{1,1},2,{1,1}} the function should return 10 (four 1's at depth 2, one 2 at depth 1) * Given the list {1,{4,{6}}} the function should return 27 (one 1 at depth 1, one 4 at depth 2, and one 6 at depth 3)

Solve by recursively entering lists within lists: void printLevel(List l){ int level = 0; System.out.println(recurse(l, level)); } int recurse(List l, int level){ int sum = 1; for(int i = 0; i &lt; list.length; i++){ if( isInteger(list.get(i))){ int val = list.get(i) * level; sum = sum + val; }else{ // recurse and increment depth level sum = sum + recurse(l.get(i), level+1); } } return sum; } I typed this up fast so will have to go back through and check for errors. Less

void printLevel(List l){ int level = 1; System.out.println(recurse(l, level)); } int recurse(List l, int level){ int sum = 0; for(int i = 0; i &lt; list.length; i++){ if( isInteger(list.get(i))){ int val = list.get(i) * level; sum = sum + val; }else{ // recurse and increment depth level sum = sum + recurse(l.get(i), level+1); } } return sum; } whoops meant to swap level and sum. Sum should 0 and level should start at 1. Less

### How would you feel if someone asked you a question you didn't know?

I would not feel bad I would just say I do not know the answer to that but if you would give me a few minutes to find out I do not mind checking for you Less

Depending on the circumstances of the question and if I have been properly trained to handle it or not Less

I would refer them to a supervisor

### What are JetBlue's five core values?

Safety, Caring, Integrity Fun, and Passion

Don't even think of interviewing at JetBlue without being able to list these values. They attach a lot of importance. I know several people who were in the midst of interviews at JetBlue that they believed were going really well but were suddenly shut down when they were unable to name these values. Less

How long did it take for you to get a response from your phone interview?

### Write a function that returns the nth power number, where a power number is a number that can be expressed as x^y. Note that the power number sequence is in ascending order (4, 8, 9, 16, 27, 32, ...).

Would 25 also be a power number? 5^2

Can y=1?

This is the actual series 4, 8, 9, 25, 27, 32, 36. Here x, y &gt; 1, so the smallest power number will be 2^2 i.e. 4 Less

### What are the core values of JetBlue?

how long did it take to hear back from the virtual interview? It's been over a week for me ;( Less

It was probably 3-4 weeks. They were really slow getting back to me

thanks for replying. i guess i still have some hope haha. its been 2.5 weeks!

### There are 8 balls that look the same. 1 of these balls is heavier than the rest. WIth a double scale, how would you find the heaviest ball?

You split the balls in 3 groups - 3, 3, 2. 1st weigh. On each side of the scale place 3 balls. - If he groups are equal in weight, then w)eigh the 2 balls from the 3rd group =&gt; you'll have your answer in 2 steps (2nd weigh) - If the 3-ball groups are not equal in weight, pick the heaviest. 2nd weigh: on each side of the scale place one ball from the previously chosen group of 3. - if the balls are equal, the heaviest is the one that is left -otherwise, the scale will tell you which ball is heavier. Thus, you use the scale only 2 times. This is the minimum number of operations that has to be done. Less

Split into 3,3,2 say a3,b3,c2 take a3,b3 [1st weigh] Now there are 2 possibilities: 1) if equal then goto c2 and weigh those 2 to know the heavier one [2nd weigh] 2) say a3 is heavier now weigh 2 (say x and y)out of the 3 (say x,y,z)of them [2nd weigh] Now again 2 possibilities -if equal the 3rd left one ie z is the heaviest -if one say x is heavier than y, then that is the heaviest one! HENCE we need to weigh 2 times. Less

split the 8 balls into 2 groups of 4. weight each group on each side of the scale. Discard the lighter side. Take the heavier group and split into 2 groups of 2. Discard the lighter side. Take the heavier group and split into 2 groups of 1. the heavier side is the heaviest ball. Less

### What is primary key?

Could you tell me what is the programming test?

Programming test consisted of implementation of some functions of string.

JUnit is something new that I was not informed as a necessity for the test...

### The most difficult was when he asked me if there was any part of my school projects that really tripped me up. When I confessed of a problem I had he asked me to explain what the problem was and then the solution and what I did to fix it. He expected that I learned everything about the problem in order to overcome it.

Hashtables, how they work, how I used them in my project.

### "Why do you want to work here?"

"I'm looking to continue pursuing a career in security."

As a former employee, I'm so not surprised by the review of the interview, by the person who felt he was low balled. That he received no replies to his follow up attempts to his interviewers. When it comes to money, Top Guard is not about anything but a profit for the company. For the owners. The word " raise" is not in their vocabulary. Don't look for or expect one.If you've got work experience, not looking for a huge pay checks working just 40 hrs, know how to play the game by coming to work when scheduled&amp; on time, stay outta the office, do the job? You'll make it at Top Guard. Less