↳
3-3-3 is correct answer max weighs would be 2
↳
In 2 weighings you can find. Divide then in to 3 sets. Compare two sets first, then you'll find which set has the heavy ball. In that set take two balls and weigh. Thats it, you got it. Less
↳
-HTML5 for cross-compatibility across platforms. Use Phonegap, jQuery Mobile, Titanium, TideSDK as examples. -HTML5 if future web interface. -Mobile app if you will have features relying on system behaviour (ex, iOS iCloud, Android Play Store, etc.) -Mobile app if users need performance, or if they might be using it offline (but HTML5 offline is still an option) But we are now starting to see a hybrid of these two approaches (ex. http://www.orubase.com/ Orubase). It really depends on the requirements, and the ability of developers (cost estimates) to do this. Less
↳
I didn't get to answer this but, after my nerve calmed down. func closestUser(_ users: [User], _ closest: Int,_ region:CLLocation)->[User] { let sortedUser = users.sorted { itemA, itemB in region.distance(from: itemA.location) > region.distance(from: itemB.location) } return Array(sortedUser[.. Less
↳
Like best: - Scalable - Easy to understand for front-end developers because it's still javascript Like least: - Not bundled with other features included in other environment like Rails. You have to download modules, but why can't these be integrated from the beginning? - Lack of cross-compatibility in modern browsers (bad answer, since he was referring to server-side JS) Less