Read corner views, and check for a given corner existing without regard to orientation. Check all possibilites (redundant use of symbols). If no corner, then N. If yes corner, then check orientation.

Check orientation by translating the input orientation number to corner number. Just hard code each translation. (I think this translation is the weak point of the algorithm. If you can think a better method, please comment here)

I'll try to get some code up on Mon or Tues.

Here's my code at last. Still gets Wrong Answer, so help appreciated. I know the style is poor, but it was my first C project in a long time.