manikantababu.t
Questions (1)
Comments (1)
Reputation 0
- 19
0of 0 votes
AnswersGiven two strings A and B of different length, find that whether all the characters of A exists in B or not.
- manikantababu.t on October 12, 2012 in India Edit | Report Duplicate | Flag
For example,
1.
A: 'abcd'
B: 'agbchd' ===> letters of string A exists in B.
2.
A: zzz
B: abz ==> letters of A exists in B.
Amazon Software Engineer / Developer Algorithm
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
Without using extra space, i mean without hash can you reduce the time complexity.
- manikantababu.t on October 12, 2012 Edit | Flag View Reply