Correct logic but still Wrong Answer on Test Case 2 Why?

Revision en1, by MahaRathi, 2023-11-26 22:22:40

233499955 What is wrong with my submission I am storing smaller divisible indexes of 2 like if array x is 6,4,2,5,7,1 and biggest power of 2 in array a is 4 then i am storing 4,2,1 and then dividing it one by one in o(30n) worst complexity? please help I have read the editorial.

Tags #help, #wronganswer

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English MahaRathi 2023-11-26 22:22:40 348 Initial revision (published)