new post LeetCode[4-8]; and some modifications on index