We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fddfb40 commit f9a45a6Copy full SHA for f9a45a6
dnacoder.go
@@ -40,7 +40,7 @@ func encodeTernaryToDNA(ternaryStr string) string {
40
previousNucleotide := byte('A')
41
42
for _, tritChar := range ternaryStr {
43
- trit := tritChar - '0' // Convert to integer
+ trit := tritChar - '0' // Convert to integer
44
nextNucleotide := lookupTable[previousNucleotide][trit]
45
dnaSeq.WriteByte(nextNucleotide)
46
previousNucleotide = nextNucleotide
@@ -70,7 +70,7 @@ func decodeDNAToTernary(dnaSeq string) (string, error) {
70
71
func encode(data []byte) string {
72
ternaryStr := byteArrayToTernary([]byte(data))
73
- return encodeTernaryToDNA(ternaryStr)
+ return encodeTernaryToDNA(ternaryStr)
74
}
75
76
func decode(dnaSeq string) ([]byte, error) {
0 commit comments