TotBKuzJINIjbiJCS

Date: 2013-06-27 04:01 pm (UTC)
From: (Anonymous)
public static boeaoln 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.
HTML doesn't work in the subject.
More info about formatting

Profile

hades_wench: (Default)
hades_wench

December 2015

S M T W T F S
  12345
6789 101112
13141516171819
20212223242526
2728293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 10th, 2025 04:51 pm
Powered by Dreamwidth Studios