Consider this data sequence: “fish bird reptile reptile bird bird bird mammal fish”.

java

LANGUAGE: Java CHALLENGE: Consider this data sequence: “fish bird reptile reptile bird bird bird mammal fish”. Let’s define a SINGLETON to be a data element that is not repeated immediately before or after itself in the sequence. So, here there are four SINGLETONs (the first appearance of “fish”, the first appearance of “bird”, “mammal”, and the…

Read More