Final answer:
Noah condemned the world and became an heir of righteousness through his good deeds and obedience, as he built the ark in preparation for the flood based on his faith in God's warning.
Step-by-step explanation:
According to Hebrews 11:7, Noah condemned the world by his good deeds and obedience, specifically by building the ark in heed of God’s warning about the upcoming flood. This act of faith demonstrated Noah’s trust in God and his divergence from the corrupt world around him. By following God's command, Noah became an heir of the righteousness which is according to faith, as his actions exhibited his belief in God's promise and his separation from the sinful behaviors of his contemporaries.