[Solved] There are N cities in a country. George is initially at the airport in city 1 and he wants to reach city N.C++,Java, Python
![[Solved] There are N cities in a country. George is initially at the airport in city 1 and he wants to reach city N.C++,Java, Python N cities](https://realcoder.techss24.com/wp-content/uploads/2023/10/output-43-768x512.png)
There are N cities in a country. George is initially at the airport in city 1 and he wants to reach city N. For any city i, there is either a flight to city (i+1) or to (i+3) if it…