Archive for the ‘C#’ Category

Programming Interview Question #4 from Dev102

Over at Dev102, they are running a weekly series of programming job interview questions. Here is this week’s question:
How would you implement the following method: Foo(7) = 17 and Foo(17) = 7. Any other input to that method is not defined so you can return anything you want. Just follow those rules:

Conditional statements (if, switch, […]