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 static void ReverseArray()
- vaibhav.energy April 08, 2014{
int[] arr= new int[] {1,2,3,4,5,6,7,8,9,10};
int[] Temparr= new int[10];
int n;
Console.WriteLine("Enter no of element to be reverse <10");
n = Convert.ToInt16(Console.ReadLine());
for (int i = 0; i < arr.Length; i++)
{
if ((i + 1) <= n)
{
Temparr[i] = arr[i];
}
else
{
break;
}
}
Console.WriteLine("element is going to reverse");
foreach (var item in Temparr)
{
Console.Write(item +",");
}
//shifting the reamning array1
for (int i = n; i < arr.Length; i++)
{
arr[i - n] = arr[i];
}
Console.WriteLine("After shifting");
foreach (var item in arr)
{
Console.Write(item + ",");
}
//shifting the reamning array2
int loc= arr.Length -n;
for (int i = 0; i < n; i++)
{
arr[loc]=Temparr[i];
loc++;
}
Console.WriteLine("After All");
foreach (var item in arr)
{
Console.Write(item + ",");
}
}