Skip to content

Ratheshprabakar/Logical-Interview-Questions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logical-Interview-Questions

Input : 1234567
Output : ODD 4  EVEN 3
INPUT : Size of Array : 8
Enter the elements : 2 5 1 6 2 6 7 10 OUTPUT : 7
INPUT : Size of Array : 4 
Enter the elements : 4 1 2 2 
OUTPUT : 2
INPUT : Size of Array : 1 
Enter the elements : 1 
OUTPUT : No second maximum
INPUT : 
Enter Row Size : 4 
Enter column size : 3 
Enter the matrix : 
1 0 1 
1 1 0 
1 1 1 
1 0 1 
OUTPUT : 
Unique Matrix : 
1 0 1 
1 1 0 
1 1 1
INPUT : Enter the array size : 8 
Enter the elements : 1,3,5,2,1,8,6,9 
Enter the window size : 3 
OUTPUT : 5 5 5 8 8 9
Input : n = 32
Output : 55
23 + 32 = 55 which is a palindrome.
Input : 39
Output : 363 which is a palindrome
Input:
Number of digits:12
9 2 8 1 3 5 6 7 3 1 1 6
Number of digits:9
7 8 4 6 2 1 9 9 7
Output :
9 2 8 9 2 0 2 9 5 1 1 3
Input
Array = {1 3 4 8 10} N = 7
output
true
        t    d
         h  r
           i
         h   r
        t      d
Example:
Input: {2, 3, 2, 6, 1, 6, 2}
Output:
1 : 1
2 : 3
3 : 1
6 : 2
I/P: house no : 123@ cbe
Output: ebc32 1o : nes@ uoh
Input Output 
1         A 
26       Z 
27       AA
eg) i/p a = 20;b = 100;
o/p : 25,36,49,64,81,100
Array1: [1, 2, 3, 6, 9]
Array2: [2, 4, 5, 10]
Merged Array: [1, 2, 3, 4, 5, 6, 9, 10]

-To find the odd numbers in between the range.

Input:
2
15
Output:
3,5,7,9,11,13
I/P:ZOHO123
O/P:OHOZ123
I/P:zohomail
O/P:zihamool
I/P: N=15
O/P: 1,-2,-3,4,5,6,-7,-8,-9,-10,11,12,13,14,15.]
Input : [ 2 2 3 4 5 12 2 3 3 3 12 ] 
Output : 3 3 3 3 2 2 2 12 12 4 5

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages