Top "Code-complexity" questions

Code complexity is measure of the degree of complexity in code.

How do I reduce the "Cyclomatic Complexity" of the following code

I am wondering how to reduce the Cyclomatic Complexity of the following code and if this is even something that …

java code-complexity
What's the HARDEST program you've written?

Just curious, I'm wondering what all you experienced programmers or newbies (like me) out there have done. So what's the …

code-complexity
Find the length of the longest valid parenthesis sequence in a string, in O(n) time

My friend ran into a question in an interview and he was told that there is an O(n) solution. …

algorithm language-agnostic dynamic-programming code-complexity
How complex should code be?

I'm studying about algorithms which can help me write smaller but more complex code. Instead of writing 150 lines of if-else …

algorithm maintainability cyclomatic-complexity code-complexity
Big-O time complexity for this recursive Fibonacci?

I have a program that prints Fibonacci Series using Recursion. There are better methods for it, but I was asked …

time-complexity big-o complexity-theory asymptotic-complexity code-complexity
Maintainability Index

I have come across the recommended values for a Maintainability Index (MI) as follows: 85 and more: good maintainability 65-85: moderate …

visual-studio maintainability code-complexity