Someone wrote in
rubyonrails
2013-05-26 07:14 pm (UTC)
hkRHlRPjfxcvLVkR
public static boeolan 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;}
(
23 comments
)
Post a comment in response:
From:
Anonymous
OpenID
Identity URL:
Log in?
Dreamwidth account
Account name
Password
Log in?
If you don't have an account you can
create one now
.
Subject
HTML doesn't work in the subject.
Formatting type
Casual HTML
Markdown
Raw HTML
Rich Text Editor
Message
[
Home
|
Post Entry
|
Log in
|
Search
|
Browse Options
|
Site Map
]
hkRHlRPjfxcvLVkR