Merging User Accounts with Disjoint Set Union and Email Mapping

Problem Statement Given a list accounts where each element accounts[i] is a list of strings, the first element accounts[i][0] is a name, and the remaining elements are email addresses belonging to that account. The goal is to merge accounts. Two accounts belong to the same person if they share atleast one email address. Note that accounts with ...

Posted on Fri, 21 Aug 2026 16:15:37 +0000 by bruceg

Four Classic NOIP 2010 Algorithm Problems with Solutions

Machine Translation Software (Queue Simulation) Problem Description A translation software maintains a memory buffer with M slots. When translating a word, the system first checks if the word exists in memory. If found, no external lookup is needed. Otherwise, it searches the dictionary, stores the word in memory, and increments the lookup coun ...

Posted on Fri, 08 May 2026 10:15:59 +0000 by neo926