said in Java 5 lines clean solution:
sb.append(sb.length() % (k + 1) == k ? '-' : "").append(s.charAt(i));
This is great!
but i'm having trouble with this part. can you help?
License Key Formatting
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.