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

DNA Project Final #268

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

DNA Project Final #268

wants to merge 1 commit into from

Conversation

anton-tars
Copy link

No description provided.

NSMutableArray *DNA;
}

-(id) init: (int) count;
Copy link

Choose a reason for hiding this comment

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

Лучше так не делать. init - это конструктор по умолчанию, его делают без передаваемых параметров. Его можно реализовать в данном случае для инициализации массива строго из 100 символов, и сделать дополнительный конструктор на подобии такого:

-(id) initWithCapacity: (int)capacity;

Copy link

Choose a reason for hiding this comment

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

ИМХО в нашем случае лучше было вообще сделать длину ДНК константой, это избавило бы от необходимости проверки длин ДНК разных клеток в hammingDistance.

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.

None yet

3 participants