Interview Ques

Only available on StudyMode
  • Topic: C, Linked list, Sorting algorithm
  • Pages : 135 (24158 words )
  • Download(s) : 114
  • Published : February 5, 2013
Open Document
Text Preview
Home

Questions

Search

Forum

Contact

Guest Book

Polls!

Got a Question?

q

Linked Lists
r

How do you reverse a singly linked list? How do you reverse a doubly linked list? Write a C program to do the same. Updated! Given only a pointer to a node to be deleted in a singly linked list, how do you delete it? Updated! How do you sort a linked list? Write a C program to sort a linked list. Updated! How to declare a structure of a linked list? Write a C program to implement a Generic Linked List. How do you reverse a linked list without using any C pointers? Updated! How would you detect a loop in a linked list? Write a C program to detect a loop in a linked list. How do you find the middle of a linked list? Write a C program to return the middle of a linked list If you are using C language to implement the heterogeneous linked list, what pointer type will you use? How to compare two linked lists? Write a C program to compare two linked lists. How to create a copy of a linked list? Write a C program to create a copy of a linked list. Write a C program to free the nodes of a linked list Updated! Can we do a Binary search on a linked list? Write a C program to return the nth node from the end of a linked list. New! How would you find out if one of the pointers in a linked list is corrupted or not? New!

r

r r r r r

r

r

r r

r r r r

r r r r

New! Write a C program to remove duplicates from a sorted linked list New! How to read a singly linked list backwards? New! How can I search for data in a linked list? New! Write a C program to insert nodes into a linked list in a sorted fashion

q

Write your own ....
r

Write your own C program to implement the atoi() function Updated!

r

Implement the memmove() function. What is the difference between the memmove() and memcpy() function? Updated! Write C code to implement the strstr() (search for a substring) function. Write your own printf() function in C Implement the strcpy() function. Updated! Implement the strcmp(str1, str2) function. Updated! Implement the substr() function in C. Write your own copy() function Write C programs to implement the toupper() and the isupper() functions Updated! Write a C program to implement your own strdup() function. Write a C program to implement the strlen() function Write your own strcat() function

r r r r r r r r r r

New!

q

Programs
r r r r r r r r r r r

Write a C program to swap two variables without using a temporary variable What is the 8 queens problem? Write a C program to solve it. Write a C program to print a square matrix helically. Write a C program to reverse a string Updated! Write a C program to reverse the words in a sentence in place. Updated! Write a C program generate permutations. Write a C program for calculating the factorial of a number Write a C program to calculate pow(x,n)? Write a C program which does wildcard pattern matching algorithm How do you calculate the maximum subarray of a list of numbers? How to generate fibonacci numbers? How to find out if a given number is a fibonacci number or not? Write C programs to do both. Solve the Rat In A Maze problem using backtracking. What Little-Endian and Big-Endian? How can I determine whether a machine's byte order is big-endian or little endian? How can we convert from one to another? Write C code to solve the Tower of Hanoi problem. Write C code to return a string from a function Updated! Write a C program which produces its own source code as its output Write a C progam to convert from decimal to any base (binary, hex, oct etc...) Write C code to check if an integer is a power of 2 or not in a single line? Write a C program to find the GCD of two numbers. Updated! Finding a duplicated integer problem Write code to remove duplicates in a sorted array. Updated! Find the maximum of three integers using the ternary operator. How do you initialize a pointer inside a function? Write C code to dynamically...
tracking img