GeeksforGeeks » Interview Questions

Interview Question for Software Engineer/Developer about Bit Magic

(1 post)
  • Started 4 months ago by joseph

Tags:

  1. joseph
    guest
    Posted 4 months ago #

    First some definitions for this problem: a) An ASCII character is one byte long and the most significant bit in the byte is always '0'. b) A Kanji character is two bytes long. The only characteristic of a Kanji character is that in its first byte the most significant bit is '1'.
    Now you are given an array of a characters (both ASCII and Kanji) and, an index into the array. The index points to the start of some character. Now you need to write a function to do a backspace (i.e. delete the character before the given index)


Reply

You must log in to post.

RSS feed for this topic