Count photos - MATLAB Cody - MATLAB Central

Problem 509. Count photos

Difficulty:Rate

Given n people, everyone must have pictures taken with everyone, each photo includes only two persons, please count the total number of pictures.

Solution Stats

60.18% Correct | 39.82% Incorrect
Last Solution submitted on Jun 09, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
3
6

Problem Recent Solvers418

Suggested Problems

More from this Author100

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!