Skip to main content

Terms used in questions

Concepta asked to use in questions

Eucledian distance

  • it means length of straight line

in-place

here we have to modify the given container without using any other data-structures or containers.

To solve these questions, always use a method with reference[dataTypeName&] to the conatainer[which is given to modify]

/* Method with refernce to that container */
void methodName(vector<int>&)
{
// ....code....
}

truncate toward zero

remove the decimal from float/ double type number

  • Question might be Note that division between two integers should truncate toward zero.
8.5 ⏩ 8
-2.7335 ⏩ -2

Terms to know for explaining

literals

Literals are data/values used for representing fixed values. They can be used directly in the code. For example: 1 , 2.5 , 'c' etc. Here, 1 , 2.5 and 'c' are literals.

rule of thumb

a broadly accurate guide or principle, based on practice rather than theory