Разбивка данных на части по дням
This commit is contained in:
11
bitcoin-project/src/utils.hpp
Normal file
11
bitcoin-project/src/utils.hpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "record.hpp"
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
using DayIndex = long long;
|
||||
|
||||
std::map<DayIndex, std::vector<Record>> group_by_day(const std::vector<Record>& recs);
|
||||
std::vector<std::vector<DayIndex>> split_days(const std::map<DayIndex, std::vector<Record>>& days, int parts);
|
||||
|
||||
Reference in New Issue
Block a user