Discussion:
A4Q1
(too old to reply)
Yiyao LIU
2011-11-06 23:20:54 UTC
Permalink
In assignment specification, the prototype of function Search is:
bool Search(int k);

Are we allowed to change this?
Because I want to pass back the search result to Insert.
cs240
2011-11-07 17:42:45 UTC
Permalink
You should follow the specified prototypes exactly. You can refactor the
duplicated code to a private helper function if you want to reuse the search function.

Vivian
CS240 Tutor
Post by Yiyao LIU
bool Search(int k);
Are we allowed to change this?
Because I want to pass back the search result to Insert.
Loading...