Help to solve the coding question

1 2 4 16 32…

How to solve this coding problem?

Source?..

asked in college fest

Can you provide the link…? (I just want to check my solution)

I also don’t have just tell your approach or send the code

Basic idea is to Keep track of frequency of elements in a map as you traverse it…

can you send the code I dont understand?

hey can you hepl me?

Anything you do, DON’T send your code, okay?

3 Likes

tell the approach of the que?