@Pavel i mean like... you have your cpu, then processing units for each of your senses, motor processing unit + ai motor enhancement (?), most of which are essentially running a single process (well, more like they lack software - they are very, very specialized hardware)
.code.tio.swift:1:27: error: use of unresolved identifier 'a'
func foo(a: Int, b: Int = a + 1) -> Int { return a + b }
^
.code.tio.swift:1:10: note: did you mean 'a'?
func foo(a: Int, b: Int = a + 1) -> Int { return a + b }
^
@quartata JS lets you have custom define default parameters
though seems problematic to have them constant/only resolved once e.g. a func append(node: Node = Node(value: 1)) would result in the same node object being appended every time which could lead to issues :/
P.S. I know this topic may get downvoted and closed, because it harms some pleasure of high reputation users doing such thing, and the low reputation users who only get good have no access to these votes, but still
Currently the close voting is separated as duplicate(need a link), off topic(need...
The Challenge:
Consider the below series:
n^(i+4) , n^(i+3) , n^(i+2) , n^(i+1) , n^(i)
where, i>=0 && i<=27, and, n>=2 && n<=10
Now, the series can have utmost 10 elements and at-least 3 elements.
Let 'n' be 16 and 'i' be 0. So ,resultant series will be:
16^(4) , 16^(3) , 16^(...
@flawr I don't even understand why a user with 77 rep, who probably logs on once a year, would bother changing their accept almost 2 years after my answer was posted
11,106 is a nice number too, don't be mean to poor 11,106 :(
@Oliver you can move the console.log to the footer in TIO if the challenge accepts an array of strings as output. Otherwise you might need to modify to return one long string instead
@betseg not sure about international law, but you need a permit to carry any kinds of chemicals into a plane here in Brazil, and some are not allowed at all
I think chemicals are defined by a colletion of at least one molecule (where a single atom is also considered a molecule), but if take stuff that is smaller than that I do not think it makes sense to refer to it as a chemical.
At least they got higher availability of gluten-free products? Assuming they are actually gluten-free and the label was not just made up by marketers...
Please can you help me how to :Create a Web service which provides two operations:
- getPrice: gets in input number of requested guests and city, and returns a confirmation string for first hotel.
- bookRoom: gets in input email, number of requested guests and city, and return a string as hotel v...
I remember when lightbulbs were banned a company in germany tried to continue to sell them as "heat balls" because they have an efficiency of about 97% when you consider them as heaters. As far as I know it didn't work out
the engineer who did this reasoned that it would be a lot more reasonable to protect ranforests instead of banning lightbulbs, as they do have their uses as well
500 rep "for a solution that works out the elements directly without calculating the actual permutations" (9erilous 9ermutations; OEIS A217626).
Your goal is to implement this sequence, by returning each element as
a multiple of nine. For example, the first 23 elements of this
sequence ar...
I have an array of sorted numbers:
arr = [-0.1, 0.0, 0.5, 0.8, 1.2]
I want the difference (dist below) between consecutive numbers for that array to be above a given threshold. For example, if threshold is 0.25:
dist = [0.1, 0.5, 0.3, 0.4] # must be >0.25 for all elements
arr[0] and arr[1] ...
Take the following POJOs:
public class Widget {
private String fizz;
private Long buzz;
private List<Fidget> collaborators;
// Constructor, getters & setters
}
public class Fidget {
private String fizz;
private String foo;
// Constructor, getters & setters
}
And t...
I've had a project of a language, named CodeNote for historical reasons, but I feel like it is stupid and it doesn't fit the language. Any ideas for a better name? My brother suggested that I make the name out of 2 words that rhyme with each other (just like Code and Note do).
@RosLuP It's yet another general purpose language, with syntax similar to Python, but designed primarily to be clear. It is object-oriented and planned to be a compiled language (not a script).
@DJMcMayhem Oh boy. Settle in, this'll take a while :P
Loud and/or arrogant; Prudish; Eats fast food a lot; Drinks more soda than Brits drink tea. And of course there's the Southern gentleman stereotype (Foghorn Leghorn etc.)
(Yes, I realise that not all or even a lot of Americans are like this)
Cyanide and Happiness: Panel 1: Blue Shirt says "God Bless America!" Panel 2: Green Shirt says "Oh yeah? Prove it!" Panel 3: Blue Shirt shoots Green Shirt in the head with a gun.