5 ms·
I had an interview question at Twitter that no one ever got 100% right because no one ever asked what the entity indexes in a tweet actually were, code point in
by spullara 3y ago
I had an interview question at Twitter that no one ever got 100% right because no one ever asked what the entity indexes in a tweet actually were, code point indexes, everyone assumed they were whatever their language used in substring(). Here is an example correct solution using the Java code point API:
https://github.com/spullara/interviewcode/blob/master/src/main/java/interview/OptimizedClassicWithCodePoints.java https://github.com/spullara/interviewcode/blob/master/src/ma...
Really unfortunate that Java/Windows standardized on Unicode-16 a little early.