Pergunta de entrevista da empresa Hudson River Trading

The second interview had three coding questions, one leetcode medium and two leetcode hard level questions. One of them is here: https://leetcode.com/problems/distinct-subsequences/ The second one was a data structure design question, where the data structure supports push() and randompop() operations. This interview was very difficult in my opinion