Technical Interview Questions and Answers :: Data Structure
21 / 72
No Discussion on this question yet!
22 / 72
No Discussion on this question yet!
23 / 72
No Discussion on this question yet!
24 / 72
No Discussion on this question yet!
25 / 72
No Discussion on this question yet!
26 / 72
No Discussion on this question yet!
27 / 72
No Discussion on this question yet!
28 / 72
No Discussion on this question yet!
29 / 72
#include
using namespace std;
void selectionSort(int a[], int n) {
int i, j, min, temp;
for (i = 0; i < n - 1; i ) {
min = i;
for (j = i 1; j < n; j )
if (a[j] < a[min])
min = j;
temp = a[i];
a[i] = a[min];
a[min] = temp;
}
}
int main() {
int a[] = { 22, 91, 35, 78, 10, 8, 75, 99, 1, 67 };
int n = sizeof(a)/ sizeof(a[0]);
int i;
cout<<"Given array is:"<
cout<< a[i] <<" ";
cout<
printf("\nSorted array is: \n");
for (i = 0; i < n; i )
cout<< a[i] <<" ";
return 0;
}
30 / 72
No Discussion on this question yet!
Operating System, Data Structure are some of the topics which will find the place in almost every interview, as they serve as the base and are a must especially for freshers. Also, a good subject to learn algorithms, storing methodologies, maintaining the quality and optimal time of the code and much more for college students.
The collection of Data Structure Interview Questions and Answers for Freshers questions here helps you to do that and much more. Learn and test your knowledge through the mock tests.
Giving an interview, need some quick questions to review, WE HAVE GOT YOUR BACK!!, just save the questions to your personalized reading list using TO READING LIST and see through them anytime anywhere you want.
All questions here are based on the real time experience of previous candidates and have been asked in various IT Companies interviews at freshers and Experience level.