Some DNA sequences exist in circular forms as in the following figure, which shows a circular sequence "CGAGTCAGCT", that is, the last symbol "T" in "CGAGTCAGCT" is connected to the first symbol "C". We always rea…
#include <stdio.h>#include <string.h> int less(char* str, size_t len, size_t p, size_t q){ size_t i, a, b; for (i = 0; i < len; ++i) { a = (p+i) % len; b = (q+i) % len; if (str[a] < str[b]) return…