@Lokraan/

QuickwittedWearyAnophelesmosquito

Java

No description

fork
loading
Files
  • Main.java
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import java.util.*;

public class Main {
  
  public static void main(String[] args) {
    
    String s1 = "ACGTACGTATC";
    String s2 = "ACGTAGTATC";
    int n = 0;
    
    List<char[]> s1Char = new Arrays.asList(chars, new char[1]);
    List<char[]> s2Char = new Arrays.asList(chars, new char[1]);

    for(int i = 0; i < s1Char.length && i < s2Char.length; ++i) {
      if(s1Char[i] != s2Char[i]) {
        n++;
        if(s1Char[i+1] == s2Char[i]) s1Char.remove(i);
      }
    }
    
    
  }
  
}