After you successfully submitted your solution for the code quiz you can notice something like this above your program:
What does it mean?
We measure the complexity of your code by using ABC Metric, if
- A – number of assignments
- B – number of branches
- C – number of conditionals
then √(A2 + B2 + C2) is your code complexity score
The lower the complexity of your code is, the better.
You can compare how close your have got to the best for this step and look at the decisions of other users in the tab "Solutions":
Code complexity is now avail for Python, C, C++ and Java programming languages. You can try it out in the following courses: