CODES

some learning from problems.

CODES

some learning from problems.

Showing posts with label Permutation. Show all posts
Showing posts with label Permutation. Show all posts
Friday, 6 July 2012

Write a method to decide if two strings are premutation of each other or not.

›
#include<stdio.h> #include<string.h> int check_permutation(char s1[], char s2[]) {     int c[27],i;     for(i=0;i<27;i...
Wednesday, 4 July 2012

WAP to return all anagrams from the array of strings. (all possible permutation of a String)

›
#include<stdio.h> #include<string.h> int anagram(char S[10],int l,char C[10]) { char D[10]; int j,k,m=strlen(C),i; ...
›
Home
View web version
Powered by Blogger.
Powered by Blogger.