Skip to main content
Code Review

Return to Question

replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/
Source Link

The current implementation beats 87% C# submission, runtime: 112 ms, my last practice my last practice only beats 25.59% C# submission. I also value the good performance result and this practice just accidentally showed me a possible good design.

The current implementation beats 87% C# submission, runtime: 112 ms, my last practice only beats 25.59% C# submission. I also value the good performance result and this practice just accidentally showed me a possible good design.

The current implementation beats 87% C# submission, runtime: 112 ms, my last practice only beats 25.59% C# submission. I also value the good performance result and this practice just accidentally showed me a possible good design.

edited tags
Link
t3chb0t
  • 44.7k
  • 9
  • 84
  • 190
Add some practice details about design, what to use, nested while, forget to consider performance etc.
Source Link
Jianmin Chen
  • 2.5k
  • 2
  • 28
  • 51

I am open to the advice of performance, coding guidelines, nested while, defensive checking etc. I did some study in June 2016 about coding strategies, atbecause I failed my first practice of Leetcode 125, I got so many options, use while/if, nested while, or flat code. I did not have a good understanding what is important. At the beginning, I say no to nested while loop, try to make the code more flat to left side, since I studied cyclomatic complexity and learn to lower the cyclomatic complexity of the function.

I am open to the advice of performance, coding guidelines, nested while, defensive checking etc. I did some study in June 2016 about coding strategies, at the beginning, I say no to nested while loop, try to make the code more flat to left side, since I studied cyclomatic complexity and learn to lower the cyclomatic complexity of the function.

I am open to the advice of performance, coding guidelines, nested while, defensive checking etc. I did some study in June 2016 about coding strategies, because I failed my first practice of Leetcode 125, I got so many options, use while/if, nested while, or flat code. I did not have a good understanding what is important. At the beginning, I say no to nested while loop, try to make the code more flat to left side, since I studied cyclomatic complexity and learn to lower the cyclomatic complexity of the function.

Corrected image link
Source Link
200_success
  • 145.6k
  • 22
  • 190
  • 479
Loading
add 2nd, 3rd out-of-index range checking detail.
Source Link
Jianmin Chen
  • 2.5k
  • 2
  • 28
  • 51
Loading
add 2nd, 3rd out-of-index range checking detail.
Source Link
Jianmin Chen
  • 2.5k
  • 2
  • 28
  • 51
Loading
Source Link
Jianmin Chen
  • 2.5k
  • 2
  • 28
  • 51
Loading
lang-cs

AltStyle によって変換されたページ (->オリジナル) /