¡@

Home 

python Programming Glossary: fcamel

How to improve performance of this code?

http://stackoverflow.com/questions/4295799/how-to-improve-performance-of-this-code

user 0m20.549s sys 0m0.020s Here's the code import Queue fCamel 'F' bCamel 'B' gap 'G' def solution formation return len i for.. formation return len i for i in formation formation.index fCamel 1 if i bCamel 0 def heuristic formation fCamels score 0 0 for.. fCamel 1 if i bCamel 0 def heuristic formation fCamels score 0 0 for i in formation if i fCamel fCamels 1 elif i bCamel..