Can you explain both in terms of time and space. This question here explains slicing in python very well but falls short in terms of detailed complexity analysis. - Understanding slice notation
            Asked
            
        
        
            Active
            
        
            Viewed 616 times
        
    2
            
            
        - 
                    5Linear for both – juanpa.arrivillaga Jan 07 '20 at 02:50
- 
                    Doesn't the answer depend on the implementation? – DYZ Jan 07 '20 at 02:58
- 
                    @juanpa.arrivillaga thanks, can you explain a bit of under the hood, thanks once again – nkirit Jan 07 '20 at 03:00
- 
                    @DYZ suppose I am just assigning `s = "lol" and then printing `print(s[::-1])` – nkirit Jan 07 '20 at 03:01
