Wednesday, May 31, 2017

DO YOU WANT A BET I HACK THE IRS DB AND CALL THEM MORONS PUBLICLY AGAIN? :)

The API doesn't let you grab something by its hash code. So you could do:
MyObject findIfPresent(MyObject source, HashSet<MyObject> set)
{
   if (set.contains(source)) {
      for (MyObject obj : set) {
        if (obj.equals(source)) 
          return obj;
      } 
   }

  return null;
}
Brute force and O(n) ugly, but if that's what you need to do...

No comments:

MAGWEAPON ( schoking planets against planets)

  E = 0.002 × (3 × 10⁸)² = 1.8 × 10¹⁴ joules 130 TW = 1.3 × 10¹⁴ W → 1.3 × 10¹⁴ J/s m = E / c² = 1.3 × 10¹⁴ / (9 × 10¹⁶) ≈ 0.00144 kg