You idiot Ganga Narayana .. go and drown yourself in Ganga.. Is this Bubble Sort Idiot!!
This is not Bubble sort. In bubble sort you compare consecutive elements. LOLer has made that clear in above posts. Why do you have to do it again and again. Felt like killing you !!
Yes hashing is efficient solution with extra storage it can be done in O(n). Another method would be to sort the numbers in increasing order and then check if a duplicate exists. Complexity: O(nlgn)
This can be done using a hashtable. For each number, check if (value - array[i]) exists in the hash, if not then add array[i] in the hashtable. Keep going through the array, until you find the pair which adds up to the value given. For example: if value = 20 and array is: 2, 15, 8, 10, 18. Start from 2, (20-2)=18, Check is 18 exists in the hashtable, if no, then put(2) into the hashtable. Go to 15, then 8, then 10 and then finally when you come to 18, check (20-18) = 2 exists, it does,return 2 and 18. This can be done in O(n) with extra storage.
Incorrect. As raghava mentioned, structs default to public member access, whereas classes default to private member access. This is the ONLY difference in C++, so you can do anything with a struct that you can do with a class (constructor/destructor, inheritance, operator overloading, etc)
I am not that familiar with writing complex sql queries,
but
1) Recursive queries? 2) select from another select?
When we have the 'top' command, which is highly likely to have been optimized by the Database, why does one have to go and try to come up with silly queries which are likely to be inefficient?
I have interviewed with numerous other companies besides amazon so far and I have always been stumped by OO design questions like design a parking lot,design and code an elevator,design a deck of cards,chessboard etc.Though some of these are well known and answers exist..I would like to know how to ...
Hi, it's amazing to learn that there is such a great place where we can ask question about interview. I've learned a lot from this site. by the way, Any one have any hints or tips about Amazon phone screening for SDET position? I will be having a phone interview ... 1
I prepared for weeks for a phone interview with Amazon, and when the big day came..the interviewer called 20 minutes late, asked terrible and unclear questions that were not even remotely relevant to the job right after saying hello, and at the end as I tried to salvage it, he ... 4
Got a website (particularly a technical one)? Join CareerCup's affiliate program! CareerCup's affiliate program will place an "ad" about CareerCup's best selling interview guide on your website. When someone buys it from you, you get some of the cash! See http://www.careercup.com/affiliate
Hello, I am looking for information on the Software Engineer in Test position at Google specifically. I know what the job entails but is it a respected position? Is it better to be in Dev at another company vs a SE in Test at Google? I have had experience in ... 4
Sometimes, when we reply to a comment/post new comment, we see an error message saying that the email address is Invalid. This is the call stack: Traceback (most recent call last): File "/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 503, in __call__ handler.post(*groups) File "/base/data/home/apps/careercup/17.332162777813264407/addcomment.py", line 84, in post method_email.sendEmailToRawEmail(None, email_list, author_name + ' has ... 1
Hello! As part of the requirements for the Bloomberg LP job, it is essential to be fluent in one programming language. I've noticed that a lot of the interview questions surround C++ or Java, however I have a phone interview in a few days and my knowledge of programming is ...
i emailed resume to amazon HR directly through my friends who interned at amazon before. is it rude to email directly to HR? furthermore,will they still be hiring interns this summer or it's too late to apply for internship with amazon? PS: do they have GPA requirement? i have one ... 5
Hi All, I would like to know the approach to follow when solving problems related to large data sets possibly which doesnot fit completely into memory. If someone can please provide some opinions or provide some pointers that would really be helpful.
Could someone please let me know if anyone had given the Online C++ test for Bloomberg? i.e.Online test for Full time. IF yes coould you let me know the questions or the type of questions that can be asked ???
Two Session On Site Package Seattle and Silicon Valley
$500
Pre-Interview Preparation Document
On-Site Interview #1 (45 minutes)
Interview Feedback (30 minutes)
On-Site Interview #2 (45 minutes)
Interview Feedback (30 minutes)
Student
$100
Pre-Interview Preparation Document
Phone Interview (45 minutes)
Interview Feedback (30 minutes)
More About the Interview
You will interview with real interviewers from Microsoft, Google and Amazon. Your interviewer has been trained with the top tech firms on what to look for - and they're ready to tell you what they know.
Positions:
Software Engineer
Software Engineer in Test
Program Manager
We'll tell you:
What to do when you're completely stumped
How to ask for help - without it sounding like you are
What data structures you need to really know
How to write great interview code
What your Microsoft, Google, Amazon or other interviewer really wants to see.
After You Register
An interview specialist will get in touch with you to arrange a time for mock interview. You will be asked to submit your resume and will be asked which companies you are applying to. CareerCup will match you with an interviewer who has worked at that company, or a very similar one. This will help us better identify your practice areas.
Exclusively for Software Engineers and SDETS
The Ultimate Guide to Interviewing! Author and Former Googler Gayle Laakmann has handpicked 150 of the top interview questions from Google, Microsoft, Amazon and more.
This book will:
Give you a list of topics to study.
Provide an advice for each category, including relevant terminology, useful theorems, and suggestions on how to approach these questions.
Offer 150 questions organized by topic, and sorted by difficulty, so that you can quickly narrow in on the ones you need the most help with.
Give you 120 solutions written by experts
The CareerCup Official Interview Book will give you the help you need to pass that interview!
Buy Now!
$25
Book Samples
About the Author
After interviewing with 15 companies and receiving 15 job offers, Gayle Laakmann took a Software Engineering position with Google. She spent three happy years there, doing over 150 Software Engineering interviews in Seattle, California, New York, Moscow and Budapest. She volunteered for career fairs, reviewed hundreds of resumes, and - most notable - served on Google's Hiring Commitee. Long story made short - Gayle knows what it takes to get a job with Google.
In addition to Google, Gayle has worked for Microsoft (3 summers) and Apple (1 summer). Gayle Laakmann received her bachelors and masters in Computer Science from the University of Pennsylvania.
How do you guys plan to sort an array of characters?