Restricted category To view older posts, you must first submit an approved post in that category

Tesla interview questions

Some interview questions I got from my Tesla interview I remember. Good luck to anyone interviewing!

  1. Given an array of 0’s and 1’s representing a sequence of coins with each on the heads or tails side, return the minimum number of coin flips to make the entire sequence alternating between the head and tail side of the coins.
  2. Given a string S, find the maximum number of times the characters from the word “balloon” can be removed from S.
  3. Given an integer I, return an integer which represents I with its digits interleaved by taking the first rightmost digit as the first digit, the leftmost digit as the second digit, the second rightmost digit as the third. digit and so on for all the digits in I.
1 Like