Skip to main content
All Questions

Count ways to send two aliens to Earth.

Unlock detailed company stats for this questionUpgrade

Given N aliens on planets and pairs of friends living on the same planet, count the ways to send two aliens to Earth who live on different planets.

Community answers

No answers contributed by the community yet.

Related courses

Course

Solutions Architect Interview Prep

Land your dream solutions architect job at Amazon, Google, Meta, Microsoft, Salesforce, and other top companies. Learn from mock interviews, frameworks, and advice from senior candidates. Practice system design principles and leadership skills to ace your interviews.

Course

Software Engineering Interview Prep

Land your dream software engineering role at Google, Amazon, Microsoft, Meta, Apple, and other top companies. Learn from mock interviews, frameworks, and advice from senior candidates—practice data structures, algorithms, system design, people management, behavioral interviews, and more.