Closed stanislaw closed 10 years ago
Where do you find this API ? ;)
I tried to find this "reversedArrayWithArray" API - but I see it named as "- (NSArray *)reversedArray" now. This API uses native Foundation trick.
If I am not mistaken - in my original implementation I use additional mutable array and add to it objects from the end of given array, I can not remember quite well ;) LOL
Yes, sorry, now it IS reversedArray
- I've just used the old name.
I will do it now. And will show you the concept of CocoaImplementation_
.
Thanks! Closing this ;)
Following my previous issue #34:
I think that your original implementation of reversedArrayWithArray can be improved by using the technique similar to what is used in #30 and #31:
Only first n/2 elements should be traversed exchanging i and count-i on each step - the middle element (if it exists - stays one the same position - hm, nice!).
Let me know, what do you think.