Example Implementations of the Party Problem
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
C++
C
CSharp
Dart
Go/src
Java/src/de/ahahn94
JavaScript
Kotlin-Native
Kotlin/src/de/ahahn94
PHP
Python/src
Ruby/src
Rust
TypeScript
VisualBasic
res
.gitignore
LICENSE
Readme.md

Readme.md

Party-Problem

Example Implementations of the Party Problem

The Party Problem

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.

Languages

The algorithm has been implemented in the following languages:

  • C
  • C++
  • C#
  • Dart
  • Go
  • Java
  • JavaScript (CLI via Node.js)
  • Kotlin
  • Kotlin-Native
  • PHP
  • Python
  • Ruby
  • Rust
  • TypeScript (CLI via Node.js)
  • VB.NET

These implementations use a recursive approach to solve the problem.