Engineer Developer Interview Questions

467,806 engineer developer interview questions shared by candidates

Given an infinite number of bricks of given weights w (say w = [1, 2]) and a truck of capacity c (say, c = 3), how would you find all possible combinations of bricks that match the capacity exactly? Duplicates such as [1,2] and [2,1] are NOT allowed.
avatar

Software Engineer

Interviewed at Pocket Gems

4.2
Oct 5, 2013

Given an infinite number of bricks of given weights w (say w = [1, 2]) and a truck of capacity c (say, c = 3), how would you find all possible combinations of bricks that match the capacity exactly? Duplicates such as [1,2] and [2,1] are NOT allowed.

Write a program to print all even numbers one below the other followed by odd numbers between 1 to 100 using only one 'for' loop. Output should look like this: 2 4 6 ...... 98 1 3 5 ...... 99 Is it possible to write a program for above output given the condition stated above
avatar

Software Developer

Interviewed at Intelliswift

4
Jul 11, 2014

Write a program to print all even numbers one below the other followed by odd numbers between 1 to 100 using only one 'for' loop. Output should look like this: 2 4 6 ...... 98 1 3 5 ...... 99 Is it possible to write a program for above output given the condition stated above

Viewing 2041 - 2050 interview questions

Glassdoor has 467,806 interview questions and reports from Engineer developer interviews. Prepare for your interview. Get hired. Love your job.