static void GenomicRangeQuery1() { string S = "AC"; int[] P = new int[] { 0, 0, 1 }; int[] Q = new int[] { 0, 1, 1 }; int[] result; WriteLine("{0}", S); WriteLine("[{0}]", string.Join(", ", P)); WriteLine("[{0}]", string.Join(", ", Q)); GenomicRangeQuery sol = new GenomicRangeQuery(); result = sol.solution(S, P, Q); WriteLine("{0}", string.Join(", ", result)); }
static void GenomicRangeQuery() { string S = "CAGCCTA"; int[] P = new int[] { 2, 5, 0 }; int[] Q = new int[] { 4, 5, 6 }; int[] result; WriteLine("{0}", S); WriteLine("[{0}]", string.Join(", ", P)); WriteLine("[{0}]", string.Join(", ", Q)); GenomicRangeQuery sol = new GenomicRangeQuery(); result = sol.solution(S, P, Q); WriteLine("{0}", string.Join(", ", result)); }