How to remotely access other computer?

Hello I am studying computer science. I need to do group programming work on computers with my partners. But we live separate hostels. You even can not connect our computers with LAN connection. We need to solve this problem. We need a way to access our computers easily. I need to work in his computer as well as he needs to work on my computer to find out the problems. Can it be happened? Is there any way to do this? Please help us out.
