Are you f’n joking me?!? In my 20+ years of programming, I have NEVER had to do that. I’m not a math guy, I’m a web/database guy. I’m not writing encryption algorithms here dude. So we waste most of the interview on that stupid problem.
IF you have 20+ years experience, you should be able to solve it in few minutes. Why complain? It only proves you are still don't get the CS fundamentals, if you apply for Google or MS, you will getting this kind of questions over and over. Again a waste of your time? My only suggestion for you is to take some CS courses instead of complaining.
Experience is relative to your area of expertise. I have a degree in CS. Ask me to write a linked list, or ask me to write a stack or queue. Factoring prime numbers is useless in a web application except in very very very specific cases as mentioned. Anyways, Intellius is a bunch of scammers and crooks and I'm glad it didn't work out. I hope they not only go out of business, but that their management is indicted in fraud charges...
3 most profound things about Object Oriented Programming. Although I use the concepts everyday the question sounded like something more for a college grad . Anyway the answer is Encapsulation, Inheritance, Polymorphism.
It is a basic question which leads into more deeper questions about each of those principals. A lot of people claim to be Applications architects but are really copy and paste artists and weak on application design. We look for someone who knows what those concepts are and how to use those concepts in sound design of SAP Netweaver Portal Applications. We have had way to many candidates come here charge large amounts of money for poorly designed and written applications.
I answered that I don't know who else has applied and so a gradation is impossible, but I do believe I am a good fit.
I am the CIO of BlueLinx. I apologize if my questions seemed unrelated to the position you applied for. I am trying to build a high performing team and a big part of that is chemistry and cultural fit. I am sure you were well qualified for the position from a technical standpoint as you made it through the first round, I am interested in who you are as a person and how you think to see if it is a good fit. I would not have gained that knowledge by asking about storage and CPU cycles but rather questions that may seem unrelated to a Systems Engineer. Glad you made it through the process, albeit more confusing and painful than it should have been, and glad to have you on the team G.
Amazing to see that the CIO is aware of the feedback and was quick to offer an explanation. Good reflection on company culture.
I said that you need to synchronize all the setter and getter methods. The interviewer said that still can leave the object in a inconsistent state. So i created one method for setting all address attributes. Eventually the interviewer showed me that i could remove synchronization and just use volatile if i moved all immuttable fields to a different object.
Your first answer was correct and the interviewer was wrong. synchronized methods of a class all lock on the class monitor. If you mark all the public setters synchronized the class is thread safe.