background preloader

Interviews

Facebook Twitter

Duplicate Elements of An Array. One common misunderstanding is that coding interview is all about solving algorithm questions.

Duplicate Elements of An Array

In fact, the answer itself is only part of the evaluation and sometimes it is not the most important part at all. There are many other factors being evaluated during an interview. For instance, your analysis process is at least equally important. More specifically, interviewers care a lot about how you approach a problem step by step, how you optimize your solution, how you compare different approaches and so on so forth. So in this post, we want to focus more on discussion and analysis. Question Given an array of string, find duplicate elements. For instance, in array [“abc”, “dd”, “cc”, “abc”, “123”], the duplicate element is “abc”. Solution. Epibook.github.io/solutions/java at master · epibook/epibook.github.io. Solutions - Elements of Programming Interviews. Here are the solutions in C++ and Java ordered alphabetically by problem name.

Solutions - Elements of Programming Interviews

Here is the Java codebase organized as a Maven project. We'd love to link your solutions, so if you have code you'd like to share with us, please send us a link to your public repo (github/bitbucket/etc.) or the code itself. Distributed Systems and Parallel Computing. How to get a job at Facebook or Google in 6 months. Epi light 1. Sign In for Coding Interview Preparation at InterviewBit. Coding Interview preparation made easy. Career Cup Google PDF. PLUS: » Behind the scenes look at Google Microsoft, Amazon and Yahoo interviews. » Interview War Stories: the view from the other side. » Advice on how to approach ...

Career Cup Google PDF

Page | 1 . Google Software Engineer Interview Guide About the Author: Gayle Laakmann is the founder and CEO of CareerCup.com and the author of "Cracking the ... CareerCup Top 150 Questions. Google guide. Patterns of Enterprise Application Architecture - Martin Fowler - Google Books. ImmutableCollectionsExplained - guava-libraries - Guava's immutable collections utilities, explained. - Guava: Google Core Libraries for Java 1.6+ Public static final ImmutableSet<String> COLOR_NAMES = ImmutableSet.of( "red", "orange", "yellow", "green", "blue", "purple"); class Foo { final ImmutableSet<Bar> bars; Foo(Set<Bar> bars) { this.bars = ImmutableSet.copyOf(bars); // defensive copy!

ImmutableCollectionsExplained - guava-libraries - Guava's immutable collections utilities, explained. - Guava: Google Core Libraries for Java 1.6+

}} Immutable objects have many advantages, including: Safe for use by untrusted libraries. Thread-safe: can be used by many threads with no risk of race conditions. Making immutable copies of objects is a good defensive programming technique. The JDK provides Collections.unmodifiableXXX methods, but in our opinion, these can be unwieldy and verbose; unpleasant to use everywhere you want to make defensive copies unsafe: the returned collections are only truly immutable if nobody holds a reference to the original collection inefficient: the data structures still have all the overhead of mutable collections, including concurrent modification checks, extra space in hash tables, etc.

An ImmutableXXX collection can be created in several ways: Versus. SPOJ.com - Problem PALIN. The Billion Dollar Startup Club. Top 10 Algorithms for Coding Interview. PDF: Update History, Latest version (8/1/2016) The following are the common subjects in coding interviews.

Top 10 Algorithms for Coding Interview

As understanding those concepts requires much more effort, this tutorial only serves as an introduction. The subjects that are covered include: 1) String/Array/Matrix, 2) Linked List, 3) Tree, 4) Heap, 5) Graph, 6) Sorting, 7) Dynamic Programming, 8) Bit Manipulation, 9) Combinations and Permutations, and 10) Math Problems. I highly recommend you to read "Simple Java" first, if you need a brief review of Java basics. If you want to see code examples that show how to use a popular API, you can use JavaSED.com. Online Portal for IT Interview. Big-O Algorithm Complexity Cheat Sheet.

Five-essential-phone-screen-questions - steveyegge2. I've been on a lot of SDE interview loops lately where the candidate failed miserably: not-inclined votes all around, even from the phone screeners who brought the person in initially.

five-essential-phone-screen-questions - steveyegge2

It's usually pretty obvious when the candidate should have been eliminated during the phone screens. Well, it's obvious in retrospect, anyway: during the interviews, we find some horrible flaw in the candidate which, had anyone thought to ask about it during the phone screen, would surely have disqualified the person. But we didn't ask. So the candidate came in for interviews and wound up wasting everyone's time. Antipatterns I've done informal postmortems on at least a hundred phone screens, many of them my own. The first pattern is that for most failed phone screens, the candidate did most of the talking. That's how many/most phone screens go wrong. The right way to do a phone screen is to do most of the talking, or at least the driving. Let's assume that there's an a. A computer science portal for geeks. Online text editor - collabedit.

Abstract Class and Interface in Java. Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne. Hacking a Google interview (From MIT) Google interview is so popular that even MIT dedicates a course to it!

Hacking a Google interview (From MIT)

» Hacking a Google Interview Course Website Directly from MIT’s course website, Learn the tricks. Beat the system. Ever wanted to work at a company like Google, Apple, or Facebook? There are a total 5 handouts available for download, with the first few handouts discussing basic data structures and common interview questions with complete solutions. 5 stars and highly recommended! Hacking a Google Interview. Hacking a Google Interview.