There area two types of scope Global scope is where the variable is at outside the function & Local scope is where the variable is inside the function
We always have to carefully with variables while assiging them, it may cause an error in between the local & global variable
Global variables can be reassigned that why be careful while assigning them both name should be unique.
Interview questions [1]
Question 1
// To calculate Maximum pairwise product
long long max_pairwise_product(const vector& numbers) {
int n = numbers.size();
Neat process and it went around 30 mins. They asked everything about my experience and background. Then they asked about all the algorithms in machine learning and some situation based questions.
It was good they basically asked for the coding skills and stats and econometrics and Excel also they asked . They asked why u want to join , why xyz and also some of the HR questions they asked . They asked guesstimates also .