Re: My code to determine whether two words are anagrams won't work.
- From: Lie Ryan <lie.1296@xxxxxxxxx>
- Date: Wed, 24 Jun 2009 04:11:40 GMT
Nick Keighley wrote:
On 21 June, 19:05, "Malcolm McLean" <regniz...@xxxxxxxxxxxxxx> wrote:
"Keith Thompson" <ks...@xxxxxxx> wrote in message
Perhaps, but I don't think sorting the strings is any easier thanIf CHAR_BIT is 32 and the character set includes Chinese, how easy would yur
traversing them and storing the character counts in an array. Setting
up the comparison routine for qsort isn't difficult to get right, but
it's also not difficult to get wrong.
array method be to implement?
is an anagram a meaningful concept in chinese?
Maybe... if you define anagram as all the valid characters a set of
strokes could produce
but they aren't related to character set.
.
- References:
- My code to determine whether two words are anagrams won't work.
- From: Felipe Ribeiro
- Re: My code to determine whether two words are anagrams won't work.
- From: Doug Miller
- Re: My code to determine whether two words are anagrams won't work.
- From: dee
- Re: My code to determine whether two words are anagrams won't work.
- From: Doug Miller
- Re: My code to determine whether two words are anagrams won't work.
- From: Keith Thompson
- Re: My code to determine whether two words are anagrams won't work.
- From: Malcolm McLean
- Re: My code to determine whether two words are anagrams won't work.
- From: Nick Keighley
- My code to determine whether two words are anagrams won't work.
- Prev by Date: Re: My linked list
- Next by Date: Re: concatenated strings
- Previous by thread: Re: My code to determine whether two words are anagrams won't work.
- Next by thread: Re: My code to determine whether two words are anagrams won't work.
- Index(es):
Relevant Pages
|