Featured
-
No Featured Found!
Tags
Check whether two strings are anagram of each other in C with character count method?
# include <stdio.h>
# define NO_OF_CHARS 256
bool areAnagram(char *str1, char *str2) //function checks whether two strings are anagrams.
{
// Create 2 count arrays and initialize all values as 0
int count1[NO_OF_CHARS] = {...
Check whether two strings are anagram of each other in C?
// C program to check whether two strings are anagrams
#include <stdio.h>
#include <string.h>
void quickSort(char *arr, int si, int ei); //Function declared for sorting a string
bool areAnagram(char *str1, char *str2) /...