Snapmint Interview Question

difference between dense rank and rank a use case on that and same use case how can i do using python