Questions and Answers
Problems and Solutions
Quotes help make search much faster. Example: "Practice Makes Perfect"
Thursday, December 15, 2016
Codefights createArray(size)
//sample solution
function createArray(size) {
var someArray = [];
for(i=0; i<size; i++){
someArray.push(1);
}
return someArray;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
This is an example of
scrolling text
using Javascript.
Popular Posts
Codecademy Sample Solution: Codeyear Get to the back of the line!
<style> span { background-image: url('http://hosturl.co.uk/cc/lady2.png'); width: 105px; heig...
Array Element Tally
Say you had an election, and you needed to tally the votes for each candidate. All you need to do is enter the name of each candidate o...
After death, which organ putrefies last?
The spleen
Codefights additionWithoutCarrying(param1, param2)
//sample solution function additionWithoutCarrying(param1, param2) { var param1Array = param1.toString().split("").reverse()...
Compounding: Finding the Present Value given the Future Value
A typical compounding problem would be something like: What is the present value (P) of a future value (F) if (P) was deposited/lent a...
Compounding: Finding the Present Value of an Annuity
A typical compounding problem would be something like: How much is the equivalent Present Value (P) if an investment pays an amount (A...
Codecademy Quantiles Common Quantiles 4/5
#Sample Solution --- title: "Quantiles" output: html_notebook --- ```{r} # load song data load("songs.Rda") ```...
What is the area of a trapezoid?
Type in the length of the shorter base of the trapezoid: meters Type in the length of the longer base of the trapezoid: meters ...
What is the area of an N-sided regular polygon?
A regular polygon has sides of equal length. Type in the length of the side of a sided regular polygon: meters Compute
What is the area of a regular myriagon (10000-sided polygon)?
Type in the length of the side of a myriagon: meters Compute
No comments:
Post a Comment