interview-questions

What happens from the moment we press a key on the keyboard, until it appears in your word document

This question was in my job interview.. I just to see whether I gave all the details... ...

Interview Question Advice Needed

I am tasked with hiring some new programmers for my software business, and need to solidity on an interview approach. I have been thinking about one of two approaches and have listed them below. Does anyone have any advice on which approach might produce better results? Approach 1: Asking several question about the syntax of a particu...

Why don't all programming job interviews involve writing a program?

This discussion about Interviewing Techniques has inspired me to ask, "Why don't all programming job interviews involved writing some kind of a program?" In my opinion, asking an interviewee to sit down in front of a computer and write a small program, in a language they claim to be proficient in, to solve a predefined problem, would we...

VBA Interview Questions

I have an interview coming up for a VBA job. I didn't apply for it and was just asked to come in for an interview so I figured, "why not?" I havent used VBA in a couple years and while I'll do a little freshening up myself, I was wondering if anyone knew of any "gotcha" type VBA questions that might show up in an interview. ...

How can we get rid of unnecessary inheritance?

Hi All, I have got a question in my finished interview that I wouldn't get the right answer. Assume that we have 3 class, Base, Derivate1 and Derivate 2, Their relations are shown as follow public class Base {...} public class Derivate1 extends Base {...} public class Derivate2 extends Derivate1 {...} Then we found out that Deriv...

The Travel Tickets Problem

You are given a stack of travel tickets for various transportations that will take you from a point A to point B via several stops on the way. All of the tickets are out of order and you don't know where your journey starts, nor where it ends. Sort the tickets in the right order to complete your journey. tickets = [ {from: "Barcelo...

Simple Code Review as a part of Technical Interview?

We will be conducting interviews in the very near future. As I find asking technical questions to be a poor gauge of whether a person actually knows something, or just "studied" for the interview, I was thinking of conducting a simple code review during the interview. Overall I would try to keep the exercise to 5-10 minutes max. Specifi...

Question from Interview, Retrieve alphabetic order from dictionary

My girlfriend got this question in an interview, and I liked it so much I thought I'd share it... Write an algorithm that receives a dictionary (Array of words). The array is sorted lexicographically, but the abc order can be anything. For example, it could be z, y, x, .., c, b, a. Or it could be completely messed up: d, g, w, y, ... It ...

Two dimensional arrays allocation problem

Hello all, this is an interview question my friend was asked yesterday. The question was something like: will this program crash with an "access violation" error or not? I looked at it for a while and thought no, it won't. But actually trying this out in visual studio proved me wrong. I cannot figure out what happens here... or to be mo...

Finding the dominating pairs in a set of coordinates in O(nlgn)

a coordinate a(xa,ya) dominates b(xb,yb) if ( xa>=xb and ya>=yb) how can I find all pairs in a set of coordinates in nlgn using divide and conquer? edit:the number of pairs instead. ...

handling large scale dataset

From the online discussion groups and blogs, I have seen a lot of interview questions are related to handling large scale dataset. I am wondering is there a systematic approach to analyze this type of questions? Or in more specific, is there any data structure or algorithms that can be used to deal with this? Any suggestions are really a...

Interview Questions for Javascript Problems

Hi, "What is the most difficult problem you faced in web designing (javascript or css related) and how did you debug and solved it?" This is the question asked to me in an interview. According to my experience I answered it but interviewer expected some more advanced answer from me. Could you pls share with me the problems which you fa...

First Meeting Questions?

Possible Duplicate: What should I ask a prospective client during initial meeting? Hi, What Should I ask the client in first meeting for a project? Project is about an enhancement of existing functionalities of client's product with domain Web Conferencing. Note: I'm a software developer, so I'm looking this space for tech...

a system design question

I was asking the following question during interviewing in a company working on cloud computing, and did not answer well. Any suggestions on how to analyze this question will be greatly appreciate. Our company has hundreds of millions of users and we expect zero down time in production, explain techniques and programming practices that ...

Programming Interview Question / how to find if any two integers in an array sum to zero?

Not a homework question, but a possible interview question... Given an array of integers, write an algorithm that will check if the sum of any two is zero. What is the Big O of this solution? Looking for non brute force methods ...

c interview question

In the following code segment what will be: the result of function value of x value of y { unsigned int x=-1; int y; y = ~0; if(x == y) printf("same"); else printf("not same"); } a. same, MAXINT, -1 b. not same, MAXINT, -MAXINT c. same , MAXUINT, -1 ...

question about swap bits

i have question on this topic i think that answer is incorrect look http://stackoverflow.com/questions/1192487/swap-bits-in-a-number-in-c 1110 1011 it is equal 235 but i get 3051 why? ...

Hint for a C# and also an SQL Puzzle

I was browsing SO careers and came across a job that had a pdf with a couple of puzzles they wanted applicants to send in. Although I'm not interested in the job, I read the questions anyway and had a play in Visual Studio / SMSS. The first question was fairly easy to solve although I couldn't think if any way to optimise it (I solved ...

Cyclical Linked List Algorithm

I have been asked recently in a job interview to develop an algorithm that can determine whether a linked list is cyclical. As it's a linked list, we don't know its size. It's a doubly-linked list with each node having 'next' and 'previous' pointers. A node can be connected to any other node or it can be connected to itself. The only s...

Valid Permutation of Parenthesis

Possible Duplicate: Solution to a recursive problem (code kata) give an algorithm to find all valid permutation of parenthesis for given n for eg : for n=3, O/P should be {}{}{} {{{}}} {{}}{} {}{{}} {{}{}} ...