1-wap in c# to find distinct no in an array and if not then return -1
i.e{1,2,2,3,4,3,1}.The output will be 4.if there is no distinct element it returns -1.The program should be dynamic.
2-Rearrange the string ,if the string is "STUDENT" the o/p will be "STTNUED".This program should be dynamic.
VulpesPosted Jun 19, 2014, 8:40 AM
http://www.c-sharpcorner.com/Forums/Thread/258431/
As I said then it's difficult for anyone to give a sensible answer to it as there's no discernible pattern as to how the letters of "STUDENT" or any other string are to be rearranged. It's just a jumble.
Akhil MittalPosted Jun 19, 2014, 6:09 AM