giICPHqwkkr

Date: 2012-12-21 10:16 am (UTC)
From: (Anonymous)
public static boeoaln contains(String left, String right) {int magicLeft = toMagicInt(left);int magicRight = toMagicInt(right);return (magicLeft & magicRight) == magicRight;}public static int toMagicInt(String text) {int result = 0;int index = 0;for (char c : text.toLowerCase().toCharArray()) {index = c a';result |= 2 << index;}return result;}
If you don't have an account you can create one now.
No Subject Icon Selected
More info about formatting

Profile

geldyh: (Default)
Picture of "Pro" fection

November 2018

S M T W T F S
    123
45678910
11 121314151617
18192021222324
252627282930 

Style Credit

Expand Cut Tags

No cut tags