Coding Questions Flashcards

1
Q

Anagrams or Not

A

input = listen, silent
triangle, Integral

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

2 sum problem

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Given a String find out the occurrence of each character

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Sort the array and merge it.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Valid Paranthesis

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

check if string is palindrome or not?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

“123a!” return 112233aa!!

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

how do you check if number is prime or not

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Dictionary sorted based on values

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly