Jump to content

Talk:ABC correlation

From Rosetta Code

Are all zeros considered equal?

quote: "If the amount of "a"'s, "b"'s and "c"'s are equal return true. Otherwise return false"

So... should the word, umm, I don't know... "ineptitude" for instance, return True or False? There are equal numbers of a,b, & c. They are all zero.

(This kind of question is why these things should almost always start out as a draft task.) --Thundergnat (talk) 00:53, 1 August 2024 (UTC)

"ineptitude" will emit True so all zeros are also considered equal Gaham (talk) 05:27, 1 August 2024 (UTC)
Yeah, that's what I'd tacitly assumed. It also means that empty strings will emit 'true' though I decided to banish those in my Wren solution. --PureFox (talk) 10:06, 1 August 2024 (UTC)
I've added "and non zero" into the task description. --Petelomax (talk) 15:20, 5 October 2024 (UTC)
That will invalidate a number of existing samples - I suggest we change it back. --Tigerofdarkness (talk) 17:30, 5 October 2024 (UTC)
Also the task author has said above that if the counts are all zero ‘true’ should be returned. --PureFox (talk) 18:04, 5 October 2024 (UTC)
My bad. Undone (must've been tired). --Petelomax (talk) 11:54, 8 October 2024 (UTC)

Length?

At what point does "length" come into this task? Why is "length" even in the title? For that matter, why is "problem" in the title? We know it's a problem. They are all problems.

My suggestion for a better title would be "ABC correlation" or perhaps "ABC equivalence". --Thundergnat (talk) 10:36, 2 August 2024 (UTC)

I don't know why I chose this name as the title. But will use the first suggestionGaham (talk)

IMHO: The C++ submission is incomplete; where is the string coming from? The function needs to be called.

Hi;

IMHO: The C++ submission is incomplete; where is the string coming from? The function needs to be called either with hard-coded string example(s) or from a prompt or from a file.

The function itself seems fine.

Retired Build Engineer (talk)

Cookies help us deliver our services. By using our services, you agree to our use of cookies.