Files

17 lines
438 B
C++
Raw Permalink Normal View History

2026-08-11 17:40:36 +03:00
#pragma once
#include <map>
#include <set>
#include <string>
#include <vector>
namespace stl_containers {
[[nodiscard]] auto word_frequencies(const std::vector<std::string>& words)
-> std::map<std::string, int>;
[[nodiscard]] auto unique_sorted(const std::vector<int>& data) -> std::set<int>;
[[nodiscard]] auto invert_map(const std::map<int, std::string>& input)
-> std::map<std::string, int>;
} // namespace stl_containers