โ† McAfee questions

Coordinate Graph Type Detection & Design Patterns

Filed under McAfee

The question

Given an API that yields successive 2D coordinates, determine the graph type (Strictly increasing/decreasing line, Increasing then Decreasing, etc.) with minimum API invocations, and explain Singleton and Factory design patterns along with the synchronize keyword.

No write-up yet. Related questions below have one.

Related McAfee questions

Collected from public candidate posts and coding forums. Updated Nov 2026.