This blog is gonna have some important SDE interview questions, some cool youtube videos, couple of flash games and something about cricket as well :)
SDE Interview Questions - Google, Microsoft, amazon
1. Check if the two given strings are anagrams? Eg: 'Angel' and 'Angle' are anagrams, while 'quksace agjke' and 'agjke quksace' are not!
2. Given a sequence of words reverse the words and print it. Eg: 'quksace agjke is a new word' -> 'words new a is agjke quksace'
3.Write a function which determines whether provided string matches specified pattern. Signature:
bool is_match(char* text, char* pattern)
For example: is_match("quksace agjke", "q*e") returns true; is_match("quksace agjke", " quksace*") also returns true
4. Suppose one string is "agjke quksace" and another string is "quksace agjke is good", then resultant string should return "agjke quksace agjke is good"..
5. Write a program to find if a string is a palindrome e.g aabbcbbaa is a palindrom whereas 'quksace agjke' is not!
No comments:
Post a Comment