Posts

Showing posts with the label logic

Interview: solution to this riddle in programming

Image
Clash Royale CLAN TAG #URR8PPP Interview: solution to this riddle in programming 3 men walk into a bar , where they are blindfolded and given a hat each from a set of 3 blue and 3 red hats. Now the blindfolds are taken off and they are asked to identify the colour of their hat. The 1st person sees the other two and is unable to determine that color of his hat, the 2nd person sees the other two and is also unable to determine the colour of his hat. The last person tells them the colour without taking a look at the other two. What colour hat is the last person wearing? We have to solve this riddle using coding. Can someone help please? I have no idea what tags to use, and if this is even the right place to post this question. I am really sorry for any inconvenience caused. Can you solve the riddle without programming? Some information seems to be missing. E.g. the explicit statement that the three men can see each others hats and the remaining hats. The third ...

Hindu Succession Act Algorithm

Image
Clash Royale CLAN TAG #URR8PPP Hindu Succession Act Algorithm Can anyone help with Hindu Succession Act Algorithm and helps me implement it in angular with the help of a family tree. How I should take input from the user and divide the property among heirs. Algo only can help, if anyone helps with angular that will cherry on the cake Have you made any attempt at all so far? Post the code you've tried, along with the requirements – CertainPerformance 2 mins ago By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.