I think probably not, because the concentrations of salt and sugar aren’t just relative to each other but also relative to the water content. You can eat trail mix, cookies with added sodium, something like this, or a homemade version to replenish carbs + sodium after strenuous workouts, but you will still need to drink water as well.
It is in fact an algorithm because it’s choosing what posts to put in front of you based on multiple criteria (time since it was posted, votes/number of comments/time since last comment). They are relatively transparent and well documented criteria, though.
However, it’s not a personalized feed based on your interests and unsolicited data collection, which is what people sometimes mean when they say “the algorithm.”