6 kyu

Kobayashi-Maru-Test

Description:

You have to do the Kobayashi-Maru-Test at the simulator in the starfleet base.

As Captain of a starfleet ship, you have to fight against klingon warbird ships.

You can only shoot 10 times. But klingon warbirds have shields and to destroy one warbird with shields you need 5 shots. But there are a lot more than 2 warbirds. The sensors count more than 8 warbirds!

You get the list of warbirds and you have to return an array of index-Values of this list, on which your ship should shoot. The index is zero-based.

For example for fighting against one warbird: { 0, 0, 0, 0, 0 }
For example for fighting against two warbirds: { 1, 0, 1, 0, 1, 0, 1, 0, 1, 0 }

Will you win this test? I think your chances are not good....
There was only one man, who won this test!

(If you are not a star trek fan, you should google the "Kobayashi-Maru-Test".)

Puzzles
Arrays

Stats:

CreatedJun 24, 2016
PublishedJun 24, 2016
Warriors Trained254
Total Skips14
Total Code Submissions535
Total Times Completed68
C# Completions68
Total Stars14
% of votes with a positive feedback rating88% of 36
Total "Very Satisfied" Votes29
Total "Somewhat Satisfied" Votes5
Total "Not Satisfied" Votes2
Total Rank Assessments6
Average Assessed Rank
6 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • user5036852 Avatar
  • smile67 Avatar
Ad