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.
public class FindString { public static void main(String[] args) { System.out.println("Inside Main ");
- suresh.515 July 19, 2016String b = "AMAZON";
int len = b.length() - 1;
char[][] a = { {'B', 'B', 'A', 'B', 'B', 'N'},
{'B', 'B', 'M', 'B', 'B', 'O'},
{'B', 'B', 'A', 'B', 'B', 'Z'},
{'N', 'O', 'Z', 'A', 'M', 'A'},
{'B', 'B', 'B', 'B', 'B', 'M'},
{'B', 'B', 'B', 'B', 'B', 'A'} };
int k = 0;
char[] val = b.toCharArray();
char[] val1 = new char[len + 1];
char[] val2 = new char[len + 1];
char[] val3 = new char[len + 1];
char[] val4 = new char[len + 1];
for (int i = 0; i <= len; i++) { System.out.println("Value of i " + i);
Boolean val1bool = true;
Boolean val2bool = true;
Boolean val3bool = true;
Boolean val4bool = true;
for (int j = 0; j <= len; j++) { System.out.println("Value of i :" + i + " j: " + j + " value : " + a[i][j]);
val1[i] = a[i][j];
if ((val[j] == a[i][j]) && val1bool) {
val1bool = true;
if (j == len)
k++; } else {
val1bool = false; }
System.out.println("Value of i :" + (i) + " j: " + (len - j) + " value : " + a[i][len - j]);
val2[i] = a[i][len - j];
if ((val[j] == a[i][len - j]) && val2bool) { val2bool = true;
if (j == len)
k++; } else {
val2bool = false; }
System.out.println("Value of i :" + (j) + " j: " + (i) + " value : " + a[j][i]);
if ((val[j] == a[j][i]) && val3bool) { val3bool = true;
if (j == len)
k++; } else {
val3bool = false; }
System.out.println("Value of i :" + (len - j) + " j: " + (i) + " value : " + a[len - j][i]);
if ((val[j] == a[len - j][i]) && val4bool) {
val4bool = true;
if (j == len) {k++;}} else {
val4bool = false; } }
System.out.println("Value of K " + k);
}}}