<commit_before><commit_msg>Catching up... but not really<commit_after>// https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/

class Solution {
public:
    int kthSmallest(vector<vector<int>>& matrix, int k) {
        map<int, int> seen;
        for (int i = 0; i < matrix.size(); i++) {
            for (int j = 0; j < matrix.size(); j++) {
                seen[matrix[i][j]]++;
            }
        }
        int result = 0;
        for (auto iter = seen.begin(); iter != seen.end(); iter++) {
            k -= iter->second;
            if (k <= 0) {
                result = iter->first;
                break;
            }
        }
        return result;
    }
};
{'fraction_non_alphanumeric': 0.16424418604651161, 'fraction_numerical': 0.005813953488372093, 'mean_word_length': 1.5424354243542435, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 8, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2971751', 'n_tokens_mistral': 224, 'n_tokens_neox': 214, 'n_words': 52}