Re: P4: Something not "resetting"?


[ Follow Ups ] [ Post Followup ] [ CS2604 Discussion WWWBoard ] [ FAQ ]

Posted by Jason D. Burkert on August 06, 1999 at 09:11:37:

In Reply to: Re: P4: Something not "resetting"? posted by Alias on August 05, 1999 at 19:18:33:

: : I don't know if it's the sorts or just the check ON the sorts that isn't working

: I would check to make sure the check is working first. In particular make sure that you checking to see that each element is less than OR EQUAL TO the element afterwards. I missed the = my first time.

Yes, I did the same thing. I scratched my head wondering why the sorts weren't working for large values of N. It was because larger values of N led to duplicate elements. I fixed my problem just as you said by adding an "OR EQUAL TO" in my checker function.





Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2604 Discussion WWWBoard ] [ FAQ ]