64 - Flatland Space Stations | Implementation | Hackerrank Solution | Python

preview_player
Показать описание
⭐️ Content Description ⭐️
In this video, I have explained on how to solve flatland space stations using a single loop and math logic in python. This hackerrank problem is a part of Problem Solving | Practice | Algorithms | Implementation | Flatland Space Stations and solved in python. The complexity of this solution is O (n) where n is the number of space stations.

Make a small donation to support the channel 🙏🙏🙏:-

#flatlandspacestations #howtosolve #hackerrank #hackerranksolutions #hackersrealm #python #implementation #problemsolving #tutorial #algorithms #datastructures #programming #coding #codinginterview #education #aswin
Рекомендации по теме
Комментарии
Автор

Explain plz c[-1], subscript value is -1 .. how it is valid?...i am solving this in c

akshayroy
Автор

I tried it in JS because it didn't work with me in python but the answer isn't correct with every test case

mahmoudali
Автор

why did u take max(ans, c[0], n-1-c[-1])why did you consider c[0] in this case

manup
Автор

M not getting line no.17 can u plz explain??

nitakr
Автор

I didn't understand line 15 and 17 me if you can

prithvirajsinhjadav