QUIZCPP Telegram 1575
👩‍💻 Задача по C++

Напишите функцию findMedian для нахождения медианы в отсортированном массиве целых чисел. Функция должна корректно работать как с массивами чётной длины, так и с нечётной, и возвращать медиану в виде числа с плавающей точкой.

Пример:

std::vector arr1 = {1, 3, 3, 6, 7, 8, 9};
std::vector arr2 = {1, 2, 3, 4, 5, 6, 8, 9};

std::cout

@quizcpp



tgoop.com/quizcpp/1575
Create:
Last Update:

👩‍💻 Задача по C++

Напишите функцию findMedian для нахождения медианы в отсортированном массиве целых чисел. Функция должна корректно работать как с массивами чётной длины, так и с нечётной, и возвращать медиану в виде числа с плавающей точкой.

Пример:

std::vector arr1 = {1, 3, 3, 6, 7, 8, 9};
std::vector arr2 = {1, 2, 3, 4, 5, 6, 8, 9};

std::cout

@quizcpp

BY С++ задачи и вопросы




Share with your friend now:
tgoop.com/quizcpp/1575

View MORE
Open in Telegram


Telegram News

Date: |

While some crypto traders move toward screaming as a coping mechanism, many mental health experts have argued that “scream therapy” is pseudoscience. Scientific research or no, it obviously feels good. Administrators Members can post their voice notes of themselves screaming. Interestingly, the group doesn’t allow to post anything else which might lead to an instant ban. As of now, there are more than 330 members in the group. But a Telegram statement also said: "Any requests related to political censorship or limiting human rights such as the rights to free speech or assembly are not and will not be considered." Just as the Bitcoin turmoil continues, crypto traders have taken to Telegram to voice their feelings. Crypto investors can reduce their anxiety about losses by joining the “Bear Market Screaming Therapy Group” on Telegram.
from us


Telegram С++ задачи и вопросы
FROM American