Thailand raced on Tuesday to build floodwalls on the outskirts of Bangkok to prevent the worst floods in half a century from inundating parts of the capital later this week when water flowing from