Задачки, которые просят написать перед собеседованием на роль программиста в Австралии
Я недавно искала работу в Мельбурне, и в трех из шести мест, куда меня пригласили на интервью, мне прислали тестовое задание. Ниже приведены условия заданий без указания компаний. Само собой задачки на английском, но если очень хочется, просите в комментах, я переведу на другой язык.
И вот еще полезная ссылка про то, как собственно писать тестовые задания. engineering.lonelyplanet.com/...
Компания № 1.
Our company is stating a bowling club. To help with the club, we have engaged you to program a scoring system.The features on the system are:
One player only
In each frame, the bowler has 2 tries to knock down all the pins
If in 2 tries, the bowler fails to knock down all the pins, their score is the sum of the number of pins they’ve knocked down in the 2 attempts
E.g, if a bowler rolls, 4,4Their score is 8.
If in 2 tries, the bowler knocks down all the pins, it is a spare. The scoring of a spare is the sum of the number of pins knocked down plus the number of pins knocked down in the next bowl.
E.g, if a bowler rolls, 4,6 | 5, 0Their score is 20. So that’s (4 + 6 + 5) + (5 + 0)
If in one try, the bowler knocks down all the pins, it is a strike. The scoring of a strike is the sum of the number of pins knocked down plus the number of pins knocked down in the next two bowls.
E.g, if a bowler rolls, 10 | 5, 4Their score is 28. So that’s (10 + 5 + 4) + ( 5 + 4)
There are 10 pins in a frame
There are 10 frames in a match
Don’t worry about validating the number of rolls in a frame
The interface should look like this (in Java);bowlingGame.roll(noOfPins);
bowlingGame.score();
If time permits implement the rules for the last frame (i.e, 10th frame)In the last frame, if the bowler bowls a spare, they get another bowl. The score of this frame is the sum of the three bowls.
In the last frame, if the bowler bowls a strike, they get another 2 bowls. The score of this frame is the sum of the three bowls
If one has a strike for every roll, their score is 300
Notes on implementation:use Java, Javascript, Groovy, Scala, Ruby or C#
try not to spend more than 2 hours maximum. (We don’t want you to lose a weekend over this!)
don’t build guis, a command line interface etc, we’re more interested in your approach to solving the given task, not how shiny it looks.
don’t use any frameworks (rails, spring etc), or any external jars/gems (unless it’s for testing..)
do not change the interface
Компания № 2.
I want you to develop an elevator system with a web frontend and backend storage system. The gui should cater for 4 elevators (numbered A,B,C and D) and 10 floors. Each elevator should not take on more than 20 people at a time.People on a certain floor (for example, Level 9) should get the nearest available elevator (eg, say 3 elevators {A,B,C} are on floor 1 and the fourth {D} is on level 10 then elevator D should travel to get the people on level 9)
The gui should show each level and the number of people who wish to enter an elevator (textbox)
Each level should have dropdown menu and button beside it to represent the level / floor that the people on the said level wish to travel to. On each level there should be another 4 columns which show each elevator status. That is, the number of people in the current elevator and whether it’s going up (^) down (\/) or stationary (-)
I want the movement of the elevators tracked / stored in backend data storage of your choice. Please get this to me a soon as you can — at the best possible ability that you can — using the best practice OO techniques and open source technologies.
Компания № 3.
Our system has many digital images often taken with a camera. We have exported EXIF data from a selection of these images.
Your task is to create a set of static HTML files to allow a user to browse these images.Create a batch processor that takes the input file and produces a single HTML file (based on the output template given with this test) for each camera make, camera model and also an index.
The index HTML page must contain:
— Thumbnail images for the first 10 work
— Navigation that allows the user to browse to all camera makesEach Camera Make HTML page must contain:
— Thumbnail images of the first 10 works for that camera make
— Navigation that allows the user to browse to the index page and to all camera models of that makeEach Camera Model HTML page must contain:
— Thumbnail images of all works for that camera make and model
— Navigation that allows the user to browse to the index page and the camera makeThe batch processor should take the location of the input file and the output directory as parameters.
The input file only contains a small sample set of works.
Ниже присоединены шаблон и входящий файл для последней задачи.
www.dropbox.com/...bydsad37bl/works.xml?dl=0
www.dropbox.com/...output-template.html?dl=0
Если есть вопросы по тому, как тут искать работу, пишите смело в личку.
Найкращі коментарі пропустити