is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.
CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.
Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.
Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.
My progam. Please check it.
- kienkun1990 August 10, 2014public class ThreeMax {
/**
* @param args the command line arguments
*/
static int[] A = {1,3,5,-6,-9};
static int N = 5;
public static void main(String[] args) {
// TODO code application logic here
int a = A[0];
int b = A[1];
int c = A[2];
swap_three(0, 1, 2);
for(int i = 3; i < N ; i++){
if(Math.abs(A[i]) > c){
swap(i, 2);
swap_three(0, 1, 2);
}
}
int max = 1;
for(int i = 0; i<3; i++){
max *= A[i];
}
System.out.println(max);
}
static void swap_three(int a,int b, int c){
if(Math.abs(A[a]) < Math.abs(A[b])){
swap(a, b);
}
if(Math.abs(A[a]) < Math.abs(A[c])){
swap(a, c);
}
if(Math.abs(A[b]) < Math.abs(A[c])){
swap(b, c);
}
}
static void swap(int a,int b){
int tempt = A[a];
A[a] = A[b];
A[b] = tempt;
}
}