You are viewing a single comment's thread. Return to all comments →
Any thoughts on how does it compare to -
List<String> sub = new ArrayList<String>(); for(int i=0; i<=(s.length()-k); i++ ){ sub.add(s.substring(i, k+i)); } Collections.sort(sub); System.out.println(sub.get(0)); System.out.println(sub.get(sub.size()-1));
Seems like cookies are disabled on this browser, please enable them to open this website
Minimal Distance to Pi
You are viewing a single comment's thread. Return to all comments →
Any thoughts on how does it compare to -