Native Ruby doesn't support PriorityQueue. There are gems like https://www.rubydoc.info/github/kanwei/algorithms/Containers/PriorityQueue which provide PQ implementation but not available on Leetcode.
I am a Ruby programmer and not having PQ puts me at severe disadvantage in competitions and in general. LeetCode is very happy to charge $150 annual fees but not ready to provide basic tools to succeed.
Is Leetcode not right platform for Ruby programmers? Any ideas how to overcome this problem?