not correct solution ,
the gravity means that everything move down towards land ,
but your solution just flip the list down ,
for example if you try lst of any other characters your solution will not work,
the right solution is to make the characters move down
not correct solution
the gravity means that everything move down towards land
but your solution just flip the list down
for example if you try lst of any other characters , your solution will not work
the right solution is to make the characters move down
Very nice but limited, agree with first comment
not correct solution ,
the gravity means that everything move down towards land ,
but your solution just flip the list down ,
for example if you try lst of any other characters your solution will not work,
the right solution is to make the characters move down
not correct solution
the gravity means that everything move down towards land
but your solution just flip the list down
for example if you try lst of any other characters , your solution will not work
the right solution is to make the characters move down
Can you explain further on time complexity?
How do you know this example will be slow?
so good
short code but the time complexity will be high