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.
package coding;
- UseRecursion March 21, 2012import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
public class PhoneCombine {
Map inputKeys=new HashMap();
public PhoneCombine(){
inputKeys.put('2', "ABC");
inputKeys.put('3', "DEF");
inputKeys.put('4', "GHI");
}
public void findCombine(String input,String store){
if(input.length()==0)
{System.out.println(store);
store="";
return;}
for(int i=0;i<3;i++){
store+=((String) inputKeys.get(input.charAt(0))).charAt(i);
findCombine(input.substring(1),store);
store=store.substring(0,store.length()-1);
}
}
public String execute() {
String line = null;
int val = 0;
try {
BufferedReader is = new BufferedReader(new InputStreamReader(
System.in));
line = is.readLine();
// val = Integer.parseInt(line);
} catch (NumberFormatException ex) {
System.err.println("Not a valid number: " + line);
} catch (IOException e) {
System.err.println("Unexpected IO ERROR: " + e);
}
// System.out.println("I read this number: " + val);
return line;
}
public static void main(String[] args){
PhoneCombine a=new PhoneCombine();
String input=a.execute();
//a.findCombine("23", "");
a.findCombine(input, "");
}
}