Professional Documents
Culture Documents
3) Write a Function to check if the given string contains the given number of unique characters (You
should ignore case of character so R & r should be counted as same character.).
Input :- String : NagarroisBestSoftwareCompany.
N(given no. of unique characters) = 17
Output :- True or False
1) Given a string, find the longest sub-string with all distinct characters in it.If there are multiple such
strings, print them all. -O(n) solution was expected.
2) Find all common elements in given 3 sorted arrays.-O(n) time & no extra space.
3) Print given matrix in a spiral form-Tested for all corner cases.
4) Few basics like ACID properties, what is normalization, why do we do it? etc.
5) Asked to write a program to print the following pattern, if n=5:
55555
54444
54333
54322
54321