Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

Final #415

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Final #415

wants to merge 3 commits into from

Conversation

NSArtem
Copy link

@NSArtem NSArtem commented Nov 13, 2012

No description provided.

1. New proj
2. Cell class
3. DNA NSMutableArray
4. init overriden
5. -(int)hammingDistance
}

for (NSUInteger i = 0; i < length; i++) {
if (![[compareDNA.molecules objectAtIndex:i] compare:[self.molecules objectAtIndex:i]]) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Использован неверный метод для сравнения, мы создаем два объекта NSString данный метод возвращает NSComparisonResult который равен 0(FALSE) если строки совпадут, в итоге находятся совпадения, а не отличия. Верный метод для сравнения двух строк isEqualToString.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants