Why don't dating sites allow you to code your own matching function?
You could even have a dating site where all members would be required to do this via an API for that purpose.
It's a business, they want you to spend time on the app and buy the extra tokens or what not that allow you more swipes or super swipes (this was a thing when I last used these apps 3+ years ago). Giving you a hook into the sort function would cut into their bottom dollar. If they were to try and monetize this function you speak of I suspect the market would be small or it would create other markets (ie apps that help you write matching functions for the average person). Which probably isn't anywhere near the top of their feature roadmap.
Not everyone's best match is a programmer, if my wife were required to write her own matching function, she would never have used the site that matched us.
You might not be your ideal matches idea of an ideal match.
They can't manipulate you if you have access to an API and things are transparent
(a) How many people do you think are actually capable of using such a feature?
(b) How many of them would do it a second time, after realizing how badly their matching algorithm failed the first time?
(c) How much of your personal data are you going to give a web site once you realize that the kind of people who like to write algorithms are being given significant direct access to its database?
Why don’t dating sites ask leetcode hards?
I feel like if your site requires people to "code their own" xyz - the people using it would already likely be "matches" for each other because they're all devs haha.
Maybe I'm not understanding the question here though...
Don't most dating sites already offer the ability to filter out by various characteristics such as height, race, age, languages spoken, and many others?
Stalking would be the first issue I'd worry about.