diff options
Added feedback from interval exercise
1 files changed, 17 insertions, 0 deletions
| -rw-r--r-- | Year 1/Object-oriented Programming/Solutions Sem. 05/ex2-interval.cpp | 17 |
diff --git a/Year 1/Object-oriented Programming/Solutions Sem. 05/ex2-interval.cpp b/Year 1/Object-oriented Programming/Solutions Sem. 05/ex2-interval.cpp index 44f26d6..92ecbcb 100644 --- a/Year 1/Object-oriented Programming/Solutions Sem. 05/ex2-interval.cpp +++ b/Year 1/Object-oriented Programming/Solutions Sem. 05/ex2-interval.cpp @@ -1,3 +1,20 @@ +// +// ++============++ +// || Оценка: Да || +// ++============++ +// +// +-----------+ +// | !Бележки! | +// +-----------+ +// +// > Ангел Димитриев - Fri, 25 Mar 2022, 19:45 +// Супер решение. +// +// Единственотата по-сериозна забележка, която имам е че изчисляваш counts при извикването на set.-a. +// +// Не винаги е добре това, защото може временно да ти потрябва огромен интервал, а ти ще му сметнеш всичките характеристики, дори и да не са поискани. По-правилно би било да ги смяташ в palindromesCount/primesCount/nonRepeatingDigitsCount и да имаш променлива isModified, за да знаеш дали трябва да ги смяташ +// + #include <iostream> // cin, cout #include <math.h> // sqrt |
