Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

Sunday common interview problem: Maximum invitations Given the seating preferences as an array of integers (i.e. “pref[i] == j” means that person “i” wants to sit next to person “j”), determine the maximum number of people you can invite to sit a circular table while satisfying seating preferences of all invitees. Solve it yourself: https://lnkd.in/ejAtkFuV Solution: https://lnkd.in/e8gepwDa #cpp #cplusplus #coding #programming #dailybiteofcpp

  • shape, circle

To view or add a comment, sign in

Explore content categories