GithubHelp home page GithubHelp logo

mariajdab / foobar-with-google Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 924 KB

My solutions to Google foobar challenges.

Python 100.00%
foobar-challenge algorithms data-structures dinamic-programming problemsolving googlefoobar trees

foobar-with-google's Introduction

Google Foobar challenges and solutions

I was searching in Google for something related to Python optimization and I got an unexpected invitation to a challenge that appeared to be very unusual...

but, with my insatiable curiosity I accepted it, of course :)

Later, I realized it's a programming challenge by Google that people can get based on their search history or by a friend invitation. Here, I would like to share the interesting problems that I encountered and my solutions to them.

A bit of context:

After accepting the invitation and linking it with my email account, I saw some kind of terminal emulator. Typing "help" gave me access to all the information I needed to get started. For example, to get a challenge, I needed to type "request" then automatically I will have a folder in the workspace, the name of the folder will be the challenge's name and something important to point out is that after requesting the challenge the timer starts to run. You can see it in the image below, there I already had requested the challenge.

The firts challenge (level 1) was: the-cake-is-not-a-lie.

If I move to the challenge folder I was able see some files:

  • readme.txt (Typing "cat readme.txt" to see the challenge)
  • constraints.txt (Where to see the limitations.)
  • solution.py (Where Python code solution will be stored.)
  • Solution.java (Where Java code solution will be stored.)

Constraints

I chose to work my solutions with Python

solution.py



Challenge level 1: the-cake-is-not-a-lie

Time: 48 hours to solve it.



Challenge level 2

Part 1: ion_flux_relabeling

Time: 72 hours to solve it



Part 2: hey-i-already-did-that:

.. If the algorithm reaches a constant, such as 0, then the length is 1.

Challenge level 3

foobar-with-google's People

Contributors

mariajdab avatar

Watchers

 avatar

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.