akii
BAN USER- 2of 2 votes
AnswersCrypt Analysis problem :
- akii in United States
The Interviewer told me to implement the following interface
interface Expression {
Set<Char> getChars();
boolean eval(Map<Char, Int> m);
}
Map will contain values like
{ 'O' => 2, 'N' => 3, 'E' => 1, ... 'T' => 4 , } :
And eval function evaluates if the answer is correct or not , input will have 3 strings operand1 , operand2 and answer .
Overall the question was not complete , so I asked him again and again that I just have to verify the answer and not calculate it .
Verifying was really easy just get the values from map and convert to int . Add them and verify if the answer is correct.
Cam someone tell if my assumption is correct about the problem .
Example:
ONE
+ONE
----
TWO
231
+231
----
462
FOUR
+FOUR
-----
EIGHT
5239
+5239
-----
10478| Report Duplicate | Flag | PURGE
Palantir Technology Software Engineer Algorithm
I guess I asked him many times If my understanding is correct as the problem looked really simple . And even after solving , I asked for feedback and he said he was fine with the solution. , he asked me to design another class for multiplication and I did using abstract class.
Overall I felt I did well , but got a rejection mail in an hour .
Repjolenejbrunson0456, Applications Developer at Abs india pvt. ltd.
Hey I am a web writer, also known as a content writer, is a type of writer that produces content ...
Replisapyara, abc at 247quickbookshelp
I am motivated and organized professional with proven years of experience in mail services and industry having vast experience as ...
Repcarlawbartlett, Accountant at ASU
Managed a small team managing toy elephants for the underprivileged. A real dynamo when it comes to managing vashikaran mantra ...
RepYuvaanMoore, abc at 8x8
I have extensive experience as a newspaper reporter, television news reporter, AM radio talk show host and anchorman for major ...
- akii May 27, 2015