All Questions
Tagged with cyclomatic-complexity complexity
3 questions
0
votes
2
answers
316
views
Optimizing methods with multiple if checks on getter values
I have a method where I fetch user input, check if certain values exist, and based on that build my own custom input object that I would use to search in a database. The code for the search method is ...
1
vote
2
answers
98
views
Parser for file made up of sections
I'm parsing a file made up of various sections. I have a current_section variable that tracks which portion of the file I'm currently processing and the following <...
3
votes
2
answers
1k
views
Most popular element with count in Array with Java
Here is the input array of int values
Example: { 5, 4, 6, 5, 1, 0, 7, 7, 3, 5 }
Find the most repeated element with its count, example output; ...