Pergunta de entrevista da empresa Microsoft

Design and write pseudocode for a backspace function that will work with DBCS characters.

Respostas da entrevista

Sigiloso

18 de mar. de 2013

DBCS was a precursor to Unicode that represented some characters as single bytes and some by double bytes based on a high order bit representing the first byte of a double byte character. The trick is to traverse the data backwards until a byte can be found that is unambiguously a single byte character, then traverse forward until one character before the starting point.

Sigiloso

12 de nov. de 2014

So can a string contain both? or it can only contain DBCS or asci ?