employer cover photo
employer logo
employer logo

Step2gen Technologies

Is this your company?

Step2gen Technologies interview question

You have given an array without using sort function you need you print second maximum prime number.

Interview Answer

Anonymous

25 Dec 2024

Apply apply bubble sort for sort it. After that check it is a prime then add to a list and return sorted second maximum list element.