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.
java code to print maximum palindrome
- ajit.singh2688 October 17, 2014import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class largetpalindrome {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
String path = "C:\\Users\\Administrator\\Desktop\\test\\test\\src\\input.txt";
FileReader fr = new FileReader(path);
BufferedReader br = new BufferedReader(fr);
String line;
// input array one
line = br.readLine();
char[] c = line.toCharArray();
int max=0,result=0;
boolean sucess=true;
for(int i = 1;i<c.length-1;i++)
{
int pre=i-1,next=i+1;
while(sucess){
if(c[pre]==c[next])
{
max++;
if(pre!=0)
{
--pre;
}else
break;
if(next!=(c.length-1))
++next;
else
break;
}
else
sucess=false;
}
sucess =true;
if(result<max)
result=max;
max=0;
}
result=result*2+1;
System.out.print(result+" ");
}
}