755 = read/execute permission.
777 = read/write/execute permission.

As a (general) rule, all directories should be 755 and all files 644. Any files or folders requiring 777 should be below public_html.