I did this problem and it got accepted too but can you help me with a better approach or with proper and effective steps to follow to reduce my runtime.
Code-https://ide.codingblocks.com/s/356268
Problem Link-https://www.lintcode.com/problem/paint-house/description
