tandav / google-foobar Goto Github PK
View Code? Open in Web Editor NEWMy answers to google foobar coding challenges
Home Page: https://www.google.com/foobar/?eid=ihISWd38DsXBmQGwjIegAg&usg=AG3vBD1Rx1xBv40H8xVtSVvMpsavWhYzwg
My answers to google foobar coding challenges
Home Page: https://www.google.com/foobar/?eid=ihISWd38DsXBmQGwjIegAg&usg=AG3vBD1Rx1xBv40H8xVtSVvMpsavWhYzwg
I spent hours writing out the algorithm and applying it myself and I always have 2/5 failing test cases. I tried your solution and there are still 2/5 failing test cases.. WTF? I'm so pissed off, did google fuck up something? Is this a bug? I literally can't find what would be the test case where it fails. It just says
Test 1 passed!
Test 2 passed!
Test 3 passed!
Test 4 failed.
Test 5 failed.
EDIT: finally solved on my own. The problem is the limit. The range is from 1-100000. There was a test case that does something like 100000*100000 in which case int
wouldn't be able to hold that massive number, so I needed to create a temp long
variables for both x
and y
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.