Some interview questions I got from my Tesla interview I remember. Good luck to anyone interviewing!
- 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.
- Given a string S, find the maximum number of times the characters from the word “balloon” can be removed from S.
- 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.