You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ℹ 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
Fork this repo to your account.
Clone the repo to your local machine
In the root folder/directory, create a directory/folder that is named after your Github username, e.g. profnandaa for my case.
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.
Write your code, test, stage, commit, push.
Now create a PR against our main branch with the PR title: github_username - first_name e.g. profnandaa - Anthony
Our Github Actions bot will reply to you with the application form link.
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.
****
The text was updated successfully, but these errors were encountered:
Entry Challenge v.2
Write a function
CountZeros(A)
that takes in an array of integersA
, and returns the number of0's
in that array. For example, given[1, 0, 5, 6, 0, 2]
, the function/method should return2
.✅ How to Submit
profnandaa
for my case.<preferred file name>.<lang_file_ext>
e.g.count_zeros.js
(if doing with JavaScript),count_zeros.py
(if Python),CountZeros.cs
(C#) etc.main
branch with the PR title:github_username - first_name
e.g.profnandaa - Anthony
❓ 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 return5
.****
The text was updated successfully, but these errors were encountered: