job-interview

Made an interview mistake. Should I try to correct after the fact?

Ever been in a situation where you were in an interview, and realized immediately afterwards (after the nervousness wore off) that you did something wrong? I had a phone interview today. I was asked an n-ary tree problem, and coded an algorithm that used a space overhead, then a different algorithm with no space overhead. However, my so...

What is `Open Book Coding`?

I have a job interview coming up next week and I understand there is an open book test with some quick technical questions. I've never done a open book test and I'm unsure as to what it involves. ...

The limits of parallelism (job-interview question)

Is it possible to solve a problem of O(n!) complexity within a reasonable time given infinite number of processing units and infinite space? The typical example of O(n!) problem is brute-force search: trying all permutations (ordered combinations). ...

Programming tests: are they relevant?

Do online programming tests have any value (except for providing an evidence to potential employers) in terms of evaluating your knowledge, or a they too broad or too narrow in general? For examples, brainbench.com and similar websites. From my experience I have never found myself scoring particularly high, although I have many years of ...

How to find a checksum of the same checksum? (job-interview question)

Devise a simple algorithm which creates a file which contains nothing but its own checksum. Let's say it is CRC-32, so this file must be 4 bytes long. ...

Design Stock Server Application in C++

[Queston asked in ML Interview] Design an server/application which handle multiple incoming stock information ( stock symbol and values ) Server need to store the information in some cache ( need to design the data structure ), There are multiple client connected to server using tcp/ip socket. They will subscribe to particular request s...

Interview Question in C#

A Technical Lead asked me the following: He created a class, declared an object and initialized it. But in some circumstance we may get "null reference" exception. He commented that there are 1000 possible reasons for such exception and asked me to guess a single reason. I am unable to figure it out. What is (are) the reason(s) ,we may g...

What business-casual style means for programmers?

I'm going to have a job interview. The company accepts business-casual style on interviews. But what exactly this means? What are the possible choices? Is jeans appropriate? What colors: is e.g. brown khakis ok? Help me please, this really make me anxious. ...

.NET developer has a few hours to cram for a Java proficiency test. What to do?

I have an interview tomorrow morning and just found out that I will also be taking an hour-long Java proficiency test! I am a certified C# .NET developer but have barely touched Java since college. (Yes, I am thinking about switching from .NET development to Java!) I'm not going to be able to effectively cram the whole of the Java libr...

Looking for a few good C# interview problems.

I do not want to ask candidates questions, but rather give them several problems to resolve. The reason for this is that I've seen people be excellent with theory, but when confronted by a real world c# issue, just couldn't hack it. These c# problems should be simple enough that it won't take more than 1-20 minutes to resolve, yet comp...

How to react when asked a question you already know during an interview

The short story:- If you are asked a tough algorithmic/puzzle question during an interview, whose solution is already known to you, do you:- Honestly tell the interviewer that you know this question already? -- this could result in bursting the interviewer's ego and him increasing the complexity level of the subsequent questions. Do an...

Job Interview Question

What's your opinion of the following job interview question? In the requirement it never mentions about to have classic ASP experience. But the question is "What are the differences between ADO.NET DataSet and ADO Record Set?". ...

How to conduct an interview for a development position remotely?

Usually we run interviews in office. We have a room with a table, the interviewee and one or two interviewers sit at the table, interviewers ask questions, often accompanied with code snippets on paper, the interviewee (hopefully) answers them, writes code snippets to illustrate his point. Usually it's something like an interviewer write...

How do you know it's good code - Interview Question.

During a phone interview someone asked the question, "When looking at code, what's the first thing that stands out to let you know it's from a good/experienced developer?" I believe my answer was sufficient, just thought it was a bit strange so I'm curious how some of you would answer? EDIT: thank you for all the answers. One of the r...

Acquiring Table Lock in Database - Interview Question

One of my interview Questions, if multiple users across the world are accessing the application, in which it uses a Table which has a Primary Key as Auto Increment Field. The Question how can you prevent the other user getting the Same Primary key when the other user is executing? My answer was I will obtain the Lock on the table and I...

Programming interview : quick ways to ensure that program is correct

Hi, I faced a telephonic interview recently and I was asked to write a program. The program is non-trivial to understand, but I am asked to write the program. I wrote the program and interviewer showed me bugs on some corner cases. I wish, I could have found the corner cases earlier. what does everyone do in this case. Thanks Bala ...

How to find two most distant points?

This is a question that I was asked on a job interview some time ago. And I still can't figure out sensible answer. Question is: you are given set of points (x,y). Find 2 most distant points. Distant from each other. For example, for points: (0,0), (1,1), (-8, 5) - the most distant are: (1,1) and (-8,5) because the distance between th...

Applying for .net jobs as a "self learner"

Hi All, I have recently started applying for .Net jobs. I currently work in a sales role with a large telco. I found out quite late that I like programming and as such bought my house and made commitments that mean college is not an option. What I would like to know is, is it harder to get a junior job as a self learner? I have gotten ...

At What point should you understand References?

I asked a question like this in an interview for a entry level programmer: var instance1 = new MyObject{Value = "hello"} var instance2 = instance1; instance1.Value = "bye"; Console.WriteLine(instance1.Value); Console.WriteLine(instance2.Value); The applicant responded with "hello", "bye" as the output. Some of my co-workers said th...

Interview questions for an Android developer

I'm a Python and iPhone developer, with some previous C# experience. I've been asked to do an initial screen of some candidates so someone with more experience in Android is going to be following up. I did some searching on Stackoverflow and Google but wasn't able to find a good list of interview questions for an Android developer. Does...