Fair of cakes

Authors

  • Pavel Töpfer Faculty of Mathematics and Physics, Charles University, Prague

Abstract

An article from the series dedicated to problems of Mathematical Olympiad - category P (programming) shows us one easy theoretical competition problem from the recent school round held in the school year 2020/21. The problem deals with finding the longest possible section in a sequence of positive numbers, in which the sum of all numbers does not exceed a known value. The article shows various possible solutions and compares their time complexity.

Published

2022-08-30

How to Cite

Töpfer, P. (2022). Fair of cakes. MATHEMATICS–PHYSICS–INFORMATICS, 31(3), 213–219. Retrieved from https://mfi.upol.cz/index.php/mfi/article/view/651

Issue

Section

Informatics