13.9 seems identical to 13.7 variant 5, except that 13.9 asks for the length of the subarray, not the subarray itself. Is this correct, or am I missing something?
Sorry that I have no idea which version you have so I have no idea that variant you refer. Would you mind to post the content of that variant?
@tsunghsienlee: Sorry about that. This is in EPI in Java version 1.6.1.
13.9 is "Find the longest subarray with distinct enties"
13.7 is “Find the smallest subarray covering all values”. Variant 5 is “Given an array A, find the longest subarray A[i : j] such that all elements in A[i : j] are distinct”
Thanks for this information, and we remove this variant recently.
@tsunghsienlee I didn’t realize that EPI in Java v 1.6.1 is not the most recent version. I thought it was when I bought it from Amazon. Is the most recent one in print or only digital?
Bought from Amazon is the latest version at the time you bought. Digital version is not recommended as our readers thought it is not easily to read due to Google Play rendering issue on some platforms.
Good to know. Thanks!