what is mean of ll in line 30 we did not learn anything like it till the course
What is mean of ll in line 30 we did not learn anything like it till the course
even i dont understand the prime seive function what loop is doing
hello @Aditya-Kushwaha-914550392281281
ll is macro .
Macros : Macros are a piece of code in a program which is given some name. Whenever this name is encountered by the compiler the compiler replaces the name with the actual piece of code.
here ll stand for long long . (check top few lines of the code ) there bhaiya has defined
long long as ll.
read more about preprocess directive from here -> https://www.geeksforgeeks.org/cc-preprocessors/
and alos why its complexity is not nsqueare we are using two nested for loops
here is the mathematical proof for its time complexity ->
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.