Bloomberg Interview Question

They asked a Functional Programming question and a OOP question. I wasnt expecting the OOP since Leetcode pretty much is Functional Programming. They asked to implement a class card, class deck of cards and some easy methods.

Interview Answer

Anonymous

Mar 13, 2024

I chose to do this on Java. Apply inheritance and class instances. One of the methods I implemented was shuffling a deck of cards using Math.random based on any sorting algorithm