Try to answer leetcode each with two algorithms, and benchmark them.
Ruby version: ruby 3.1.2
Run rspec:
bundle exec rspec
Run rubocop:
bundle exec rubocop
Use benchmark-ips to benchmark both add/remove actions.
The testing machine hardware is Apple M2 chip/16G RAM/512G SSD