American Express Interview Question

The first round questions included basic dataframe manipulations, a regex question on writing a pattern to identify specific phrase which could have any number of random words in between (eg. between high and calorie, there could be any number of words upto 4 eg. high word1 calorie, high word1 word2 calorie' etc). This also needed some basic preprocessings like handling unidecode errors, punctuations and numbers in a string. Another question was a probability based descriptive question and a easy question on coding to print numbers between 0 to 100 which were prime.

Interview Answers

Anonymous

Jan 6, 2022

The dataframe manipulations were basic pandas problems, the regex pattern could be solved by having a pattern like r"high\s((\w+)\s){0,4}calorie". Could not solve the probability one, and prime number one can be found anywhere on internet

Anonymous

Jan 13, 2022

hey this was your written test round only ....?? do you have ipython notebook ???