Coding Questions Flashcards
1
Q
Anagrams or Not
A
input = listen, silent
triangle, Integral
2
Q
2 sum problem
A
3
Q
Given a String find out the occurrence of each character
A
4
Q
Sort the array and merge it.
A
5
Q
Valid Paranthesis
A
6
Q
Given an sorted array, insert element in it’s right position
A
arr = 3,6,8,12,15]
element = 7
output :- 3,6,7,8,12,15
7
Q
check if string is palindrome or not?
A
8
Q
“123a!” return 112233aa!!
A
9
Q
how do you check if number is prime or not
A
10
Q
Dictionary sorted based on values
A
11
Q
How many points “SONALI” will get based on the below given point system
‘AEIOULNRST” - 1 POINT
DG - 2 points
BCMP - 3 points
FHVWY - 4 points
K - 5 points
JX = 8 points
QZ = 10 points
A
12
Q
A