Coder Social home page Coder Social logo

facebull's Introduction

facebull

This contains the code, research papers and the test cases used to solve Facebull. This was a fun project that I did in 2009 over a period of 6 months.

Facebull was the hardest of all the puzzles present in the original career section of Facebook.com. The section has since been replaced with interviewstreet's tool.

First I modeled this problem incorrectly[1]. Then, I defined it more accurately[2]. An accurate definition of this problem helped me solve it.

[1] https://blogs.oracle.com/augustus/entry/modelling_a_software_problem

[2] https://blogs.oracle.com/augustus/entry/facebull_problem_definition

facebull's People

Contributors

augfrank avatar

Stargazers

Matej Kerekrety avatar Hubert avatar Bart Lyons avatar Andrew Evans avatar  avatar  avatar  avatar  avatar

Watchers

evandrix avatar  avatar

facebull's Issues

Wrong result for testcase

M1 C1 C2 2147483647
M2 C2 C3 2147483647
M3 C3 C4 2147483647
M4 C4 C5 2147483647
M5 C5 C1 2147483647
M6 C4 C3 1
M7 C3 C2 10
M8 C2 C1 100
M9 C1 C5 1000
M10 C1 C4 10000
M11 C5 C4 2147483647
M12 C5 C3 100000

Result should be 111111 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.