employer cover photo
employer logo
employer logo

Spiceworks Ziff Davis

Part of Ziff Davis

Is this your company?

Spiceworks Ziff Davis Interview Question

Given Ruby code, convert it into Java or any language that you are comfortable with. Ruby code was traversing an array of numbers and removing duplicate elements.

Interview Answer

Anonymous

Apr 17, 2014

Java: Create a set and loop through the array, adding them to the set. Then convert the set back into an array.