OOP Problems to use for Coding Tests during interviews

后端 未结 9 2092
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-31 12:00

As a second interview I get people to sit down and write code...I try to make the problem really technology independent.

My programming problems that I have don\'t reall

9条回答
  •  南方客
    南方客 (楼主)
    2021-01-31 12:38

    I've got a super simple set. The idea is mainly to use them to filter out people who really don't know their stuff rather than filtering in the rock stars.

    These are all 5 minute white-board type questions, so they are really not that hard. But the act of writing up code, and talking through it reveals a lot about a candidate - and is brilliant for exposing those that can otherwise BS through the talk.

    • Write a method that takes a radius of a circle as an argument, and returns the area of the circle (You would be amazed how many people struggle on this one!)
    • Write a program that accepts a series of numbers as arguments from the command line. Add them up, and print the sum
    • Write a class that acts as a keyed counter (basically a map that keeps track of how many times each key is "counted")

提交回复
热议问题