Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for wrapSlow (0.07 sec)

  1. src/go/doc/comment/wrap_test.go

    					}
    
    					// Check that score matches slow reference implementation.
    					slowSeq, slowScore := wrapSlow(words, max)
    					if score != slowScore {
    						t.Fatalf("wrap score = %d != wrapSlow score %d\nwrap: %v\nslow: %v", score, slowScore, seq, slowSeq)
    					}
    				})
    			}
    		})
    	}
    }
    
    // wrapSlow is an O(n²) reference implementation for wrap.
    // It returns a minimal-score sequence along with the score.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:45 UTC 2022
    - 3.7K bytes
    - Viewed (0)
Back to top