_xgw

Joined 10 years ago

Karma
181
Submissions
47
Member since
May 9
twitter @ndlabarre
View on Hacker News

Recent submissions

Comment · 9 months ago
Comment · 9 months ago
Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago
Comment · 3 years ago
Ah, interesting! I figured there would be a way without having to "brute-force" the solution by using the `permutation` predicate but I wasn't able to come up with one. I wonder if there's a way of not depending on permutation generation, nor list length. Does querying with `order(L)` require `length(L, 9)` to work?

As for the topological sort solution, I assume it's what Graphviz uses under the hood in mLuby's solution! If I understand correctly, we're graphing the sequence of reindeer and then extracting the order of the nodes in the graph?

Comment · 3 years ago
That's super interesting!

I like how straightforward the solution is. The problem almost fades away! :)

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton