Share your repls and programming experiences

← Back to all posts
Little Prince
DavidWahid (1)

This is a Little prince problem. It helps to understand structs and simple geometry.

Little prince at location A (x,y). He want to go to B(x2, y2). But there are multiple plantes around him(represented as a circle with center point and radius). You have to determine how many planets he has to cross to reach his destination.