Tag: 21009

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

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

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