## Implementation of KMP Algorithm in C, C++ and Java

In this post, we will implement KMP Algorithm in C, C++ and Java programming language.

Coding made easy

In this post, we will implement KMP Algorithm in C, C++ and Java programming language.

In this post, we will see how to return multiple values from a function in C.

Write an efficient function to implement substr function in C. substr() function returns the substring of given string between two given indexes.

Write an efficient program to implement strstr function in C. strstr() function returns a pointer to the first occurrence of a string in another string.

Write an efficient function to implement strcmp function in C. Standard strcmp() function compares the two strings and returns an integer indicating the relationship between the two strings.

Write an efficient function to implement strncat function in C. Standard strncat() function appends appends first num characters of given C-string to the another string.

Write an efficient function to implement strcat function in C. Standard strcat() function appends a copy of the given C-string to the another string.

Write an efficient function to implement substring function in C. substring() function returns the substring of given string containing n characters starting from given index.

Write an efficient function to implement strncpy function in C. Standard strncpy() function copy given n characters from source C-string to another string.

Write an efficient function to implement strcpy function in C. Standard strcpy() function copy given C-string to another string.

We have discussed about the linked list data structure which is dynamic in nature (the memory is allocated during the run time). Now the question that might be on a few peoples minds is – can a linked link be implemented statically as well? This post tries to answer this question.

In previous post, we have introduced linked list data structure and discussed about various types of linked lists. We have also covered the applications of linked list data structure and its pros and cons with respect to arrays. In this post, we will discuss various Linked List implementation techniques in detail and construct a singly …