Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,18 +0,0 @@
|
|||
function Squish( s1 )
|
||||
dim sRes
|
||||
sRes = vbNullString
|
||||
dim i, c
|
||||
for i = 1 to len( s1 )
|
||||
c = lcase( mid( s1, i, 1 ))
|
||||
if instr( "abcdefghijklmnopqrstuvwxyz0123456789", c ) then
|
||||
sRes = sRes & c
|
||||
end if
|
||||
next
|
||||
Squish = sRes
|
||||
end function
|
||||
|
||||
function isPalindrome( s1 )
|
||||
dim squished
|
||||
squished = Squish( s1 )
|
||||
isPalindrome = ( squished = StrReverse( squished ) )
|
||||
end function
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
wscript.echo isPalindrome( "My dog has fleas")
|
||||
wscript.echo isPalindrome( "Madam, I'm Adam.")
|
||||
wscript.echo isPalindrome( "1 on 1")
|
||||
wscript.echo isPalindrome( "In girum imus nocte et consumimur igni")
|
||||
Loading…
Add table
Add a link
Reference in a new issue