Decimation - Optimized for speed - MATLAB Cody - MATLAB Central

Problem 1940. Decimation - Optimized for speed

Difficulty:Rate

This problem is similar to http://www.mathworks.com/matlabcentral/cody/problems/1092-decimation, only this time the score will be based on how quickly you can determine which person will survive.

The sample sizes (num_prisoners) and number of prisoners killed (num_killed) will be larger than in the original problem, but other than that the problem sets are identical.

Solution Stats

26.0% Correct | 74.0% Incorrect
Last Solution submitted on May 05, 2025

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
4

Group

CodeCrunch 1 Image
CodeCrunch 1
  • 11 Problems
  • 10 Finishers

Problem Recent Solvers189

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!