Code Monkey home page Code Monkey logo

micropilot-entry-challenge's People

Contributors

liyocee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

micropilot-entry-challenge's Issues

Array lower bound limit

Do the array elements have a lower bound? That is, is the array allowed to have negative values or should all vales, n adhere to MAX_INT >= n >= 0 ?

Pilot 1

Make the function abstract using reduced.
Function countZeroes(numbers) {
function count(total,num) {
return total + (num==0?1:0); << ==This is ternary equation !!!
}
return reduced(count,0,numbers)
};

The Entry Challenge

Entry Challenge v.2

ℹ The program assumes you already know how to write code and use Git. The program is not meant to teach you how to write code but rather up-skill you on your data structures and algorithms fundamentals.

Write a function CountZeros(A) that takes in an array of integers A, and returns the number of 0's in that array. For example, given [1, 0, 5, 6, 0, 2], the function/method should return 2.

✅ How to Submit

  1. Fork this repo to your account.
  2. Clone the repo to your local machine
  3. In the root folder/directory, create a directory/folder that is named after your Github username, e.g. profnandaa for my case.
  4. Add a file in the created folder/directory above, with the following naming convention: <preferred file name>.<lang_file_ext> e.g. count_zeros.js (if doing with JavaScript), count_zeros.py (if Python), CountZeros.cs (C#) etc.
  5. Write your code, test, stage, commit, push.
  6. Now create a PR against our main branch with the PR title: github_username - first_name e.g. profnandaa - Anthony
  7. Our Github Actions bot will reply to you with the application form link.
  8. Fill in the form and submit.
  9. Wait for our invite if selected.

❓ Any questions?

Open an issue 👉 here

Past Challenges

Ending Feb 6 - Quadratic Equation

Given a, b, c for a quadratric expression ax2 + bx + c = 0. Write a function getX that returns the larger of the values for X, i.e. if x1 = -2 and x2 = 5, getX should return 5.

image****

What to return

What do i return when:

  1. The answer is a complex solution?
  2. X1 and X2 are equal?

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.