One was the same as the question here: https://leetcode.com/discuss/interview-question/427484/mathworks. I looked at the optimal solution in the comments, but couldn't figure out the time and space complexities
Second was Counting Pairs. I believe it's the same as this one: https://leetcode.com/problems/k-diff-pairs-in-an-array/.