amidala.shiva
BAN USER- 1of 1 vote
Answersgiven expression with operands and operators (OR , AND , X-OR) , in how many ways can u evaluate the expression to true, by grouping in different ways? Operands are only true and false.
- amidala.shiva in India
for example true & false | true ^ false can be grouped to true & ((false | true) ^ false) and so on..
the following wiki of the above question
http://en.wikipedia.org/wiki/Boolean_satisfiability_problem| Report Duplicate | Flag | PURGE
Amazon SDE-2 Algorithm
I think we shall use Chain of responsibilities pattern..
There can be different objects which are in chain, and one among them would serve the request..
For example, There is already an object which serves to write log to file and
add new object which serves writing log to Database..
The only use-case is decorate furniture with metal or wood or something else and applied different tests based on type.
but not like decorate furniture with wood and then with metal etc..
So do we really need decorator?
- amidala.shiva February 11, 2017