Round 1 | Java basic questions & 1 coding question
Questions: Diff between C and Java, Benefits of Java over C.
Coding question: Count no of valid words in a sentence.
multiple clauses(valid/invalid) were given.
Word will consist of lower and upper case letter. Special letters will not be counted as words.
Words may end in dot, comma, ! mark, a couple of more characters. Multiple spaces can be there so it should be handled too.
Round 2 |
how Garbage collector works? which algo is used?
How Quick sort works and is it stable?
How hashmap works in java and how collisions are handled?
Coding question: Find nth Fancy number.
Fancy number is a number which prime factors as 3, 5, 7 only.
E.g. 3, 5, 7, 9, 15, 21, 25, 35, etc.
Comments (2)


