For a given list of party guests and a given number of friends that each guest should have under the other guests, this algorithm removes the guests from the list that have fewer than k friends.
The algorithm has been implemented in the following languages:
- C
- CoffeeScript (CLI via Node.js)
- C++
- C#
- Dart
- Go
- Java
- JavaScript (CLI via Node.js)
- Kotlin
- Kotlin-Native
- PHP
- Python
- Qt 5 (and C++)
- Ruby
- Rust
- Swift
- TypeScript (CLI via Node.js)
- VB.NET