Forum Posts

Is Competitive Programming Useful to Get a Job In Tech
Check out my new post on tips for job seeking software developers. http://goo.gl/qmdIr8

Maximum number in array after M operations
Given an array numbered from 1 to N, you need to perform M operations. Each operation is described by 3 values a, b and k. Now, k is added for the range of values starting from index 'a' and ending at index 'b' in the given array. Now, After M operations, you have to calculate the maximum of the values in the array.
Initialize the array to '0' before starting to perform M operations.
Consider the number of elements (N) = 5
Number of operations to perform (M) = 4
When M=1,
a=1, b=2, k=100
When M=2,
a=2, b=5, k=100
When M=3,
a=3, b=4, k=100
Initially the array is 0 0 0 0 0
First operation 100 100 0 0 0
Second operation 100 200 100 100 100
Third operation 100 200 200 200 100
ANS 200 
Is it possible to make an app that measures the speed using NFC (NFC Speed Test)?
I want to know if it is possible to develop a simple Android application which examine the speed of an NFC communication link to compare with the theoretical speed of technology.
My idea is this, I want to transfer from one device to another a long string that does not mean anything in particular through an NFC link. The application is activated when starting the transmission (does not matter if you are on the receiving or transmitting device) and only show the speed of data transmission in this case, the long string. The application only would measure this speed, because you want to compare the speed obtained with the theoretical.
This application is intended to make academic purposes. My question is it possible to this application? and, How difficult would be if possible? 
What can I expect on AWS Cloud Support Associate phone interview?
Hi Everyone.
I got a one hour technical phone screen (w/ hiring manager) scheduled for Cloud Support Associate position (for AWS support team) at Amazon. I’ve pasted the excerpt from the recruiter’s email:
Basic qualifications
· Monitoring and/or Troubleshooting of:
o OS Administration (Windows or Linux)
o Network Essentials (TCP/IP)
· Knowledge of Internet Fundamentals
Preferred qualifications
· Knowledge of Cloud Computing concepts
· Experience with AWS
· Experience in a service desk or network operations environment
· Experience with scripting / programing
· Experience with database administration
Do we have anyone who has already taken this interview?
What questions can I expect?
Any advice is greatly appreciated.
Qin 
ThoughtWorks Quality Analyst Questions ?
Hello Friends,
Can anyone help me about ThoughtWorks Quality Analyst Questions ?
Thanks 
How can I improve my resume?
I'm graduating in May and have started the job hunt now. Here's my current resume:
http://postimg.org/image/kw4ozymup/
What can I do to improve it? I'm worried that it might be too long and wordy, but at the same time I don't want to skip any important details. Thanks! 
Design ticket reservation system in Java
 Basically would like to understand the design for ticket reservation system, for ex : movie tickets
 What are the different ways that we can avoid if multiple users trying to book the same ticket.
 What java collections can be used for the above usecase.
Consider the below usecase
 User A logged into the system at 10:00 AM
 User B also logged into the system at 10:00 AM
 Only one ticket is available
 Which java collection to use so that only one user gets the ticket.
 Is it required to use synchronization, without synchronization can't we achieve this by using only java collections. 
INTERVIEW AT MICROSOFT!?!
Hey guys,
I had a 30 minute phone screen interview with Microsoft on 12/15/2015, the week before Winter break. It was a Tuesday. I still haven't heard back from the recruiter, although I have sent a follow up email.
Do you think they have not responded yet simply because it is the holidays? They were interviewing all the way to 12/18/2015.
Thanks
Michael 
Cloud Support Engineer Interview : Amazon Web Services
Hi,
I am having an interview coming soon for "Cloud Support Engineer Interview" with Amazon Web Services. I am having background working with Big Data technology stack like Hadoop and its ecosystem. I am not having hands on with networking or linux administrative side.
Has anyone recently given interview for the same or similar position with Amazon. What kind of question do they generally ask over phone. Any feedback or guidance will be appreciated.
Thanks in advance 
How to Solve This Type of Problem..
There is a room where boxes are stacked. If the room is rotated 90 degrees to the
right, boxes will fall, affected by gravity. Finds out a box which will have the longest ‘fall distance’, and
output the value of the longest ‘fall distance.
like there are 26 boxes in total (7 + 4 + 2 + 6 + 7 = 26). After rotating, gravity
affects all boxes and final state becomes like the room on the right. Among these 26 boxes, a ‘fall
distance’ of box A is the longest as 7, therefore, return 7.
For reference, a ‘fall distance’ of box B is 6, and a ‘fall distance’ of box C is 1. Gravity begins to apply after rotation is finished.
Boxes are stacked being adjacent to one side of the wall, thus all boxes are located in a two
dimensional plane. There is no box which is stacked apart from the wall. The width of the wall is always 100, and the height of the wall is always 100.
Input
First line contains t, the number of test cases.
t test cases follow. Each test case has 2 lines. First line of each test case is n, the width of the
room.
Next line contains n space separated integers representing the number of boxes in each stack.
1<=t<=10
1<=n<=100
Output
The program should give output in separate line, for each test case
Sample Input
1
9
7 4 2 0 0 6 0 7 0
Sample Output
7 
Pramp  Practice Live Coding Interviews, For Free
Pramp  Practice Live Coding Interviews, For Free
After a few years of coding interviews, we noticed we always have a hard time to find good practice buddies. So we built a place for programmers like us to practice interviews together.
Pramp is a free peer2peer practice platform for coding interviews.
Our system pairs you to other candidates at your level to practice interviews together.
On each interview both your and your peer will interview the other. We take care of everything you need to practice: scheduling, interview problems & solutions, video chat, collaborative code editor and collecting peer feedback.
Join us at www.pramp.com to get dramatically better at interviewing! 
How to become Microsoft software engineer
Hey guys!
I got job offer from Microsoft 3 days before to Copenhagen office, Dynamics team, software engineer fulltime position(they said that level is one level up from postgraduate position). I am from Azerbaijan, 28 years old, who did bachelor, master degree in Baku State University, second master degree at Technical University of Munich.
So let me summarize steps I did at last 3 months until this offer. I began with The Algorithm Design Manual by Skiena. It is perfect book to get all academic stuff you will need for interviews even more. Here is link to java project here I implemented most useful solutions from this book: https://github.com/eming/Algorithms
Then switched to Cracking Code Interview by Gayle. It is just overview of interview problems types. I read these books minimum 5 times each. It took me 1.5 months.
Then I did interviews with Google and Uber, which I failed. I understood that books is not all I need for success. I began to use Careercup site, I did 10 pages from Google questions and 20 pages from Microsoft questions in this site. It took me 1.5 months, 3 months totally.
Then I found Pramp site, where I met one guy from US who helped me a lot. We did mock interviews through Skype for 13 days, 23 hours a day. At last days I did 2 mock interviews on whiteboard with my friends who already got job offer from Microsoft.
It was very successful in Microsoft interview and I got job offer :) 
Javascript question
What is good or bad about the below?
<a href="javascript:void(0)" onClick="doSomething()">Click me</a> 
Given a set and a pairwise xor set, find the second set?
We take 2 sets of integers to generate a third set with contains the xor of every element in the first set with every element in the second set.
Now as a problem we have been given the first set and the third set i.e. the set with xors, and we need to generate the second set. 
Flipkart Interview Questions Offcampus
You have been given of stream of integer find out the 1st non repeated integer.
example 21235 :here 1st integer would be 1,
123452134 : here the 1st non repeated integer would be 5.
Please let me know the solution to above question. 
Need Help with recursive time complexities
I am getting a bit confused with verbal (& fast) calculation of time complexities of recursive functions.
The substitution method & recursion tree method takes a lot of time and during interviews are not feasible options.
So I need help with fast and verbal calculation of recursive functions.
For eg.
The below method is called recursively.
Inside the method a for loop runs from 1 to n. And for each iteration the recursion is called twice.
How should the BigOh should be calculated?
compute(){
if(){
// some base case which terminates the recursion
} else {
for(1 > n){
compute();
compute();
}
}
}
Thanks For Reading 
Reverse an array of integers
Is there a better way to reverse an array of integers than the one below. Will using a stack perform better
int [] array = {2,5,7,8,9,10}
int startindex = 0;
int endindex = array.Length 1;
while(startindex < endindex)
{
int temp = array[startindex];
array[startindex] = array[endindex];
array[emdindex] = temp;
startindex++;
endindx
}
Complexity : O(n/2) 
Negotiating a Google vs Facebook offer
I am in the lucky position to will be receiving an offer both from Goog and Fb. The companies know about each other. Goog apparently decided not to extend an offer if I don't tell them what's Fb offer first. My other option was to tell them what total compensation I would need to shut the door with Fb without hearing their offer at all. I took time and have not talked to FB yet. What's the rational behind Goog's (questionable) move? What's the best course of actions for me at this point?

Want good resume for 6 month Java Experienced Guy
Hello
Can anyone please share Resume of 6 month experienced Guy.