Connect - three inputs

Description

Connect stringA + stringB + stringC

Inputs

  • string A
  • string B
  • string C

Outputs

  • connected

Neuron type

Best algorithm has been found - locked

Patterns

Pattern Input Output
1.
string A: a
string B: b
string C: c
connected: abc
2.
string A: 3
string B: 1
string C: 2
connected: 312

Applicable neurons

  • Connect - two inputs

Algorithm

Test

Code made by AI:
/**
 * Connect - two inputs: 
 *
 * @param x1 Variable A
 * @param x2 Variable B
 * @return {Array}
 */
function neuron520(x1, x2)
{
return [x1.toString()+x2.toString()];
}

/**
 * Connect - three inputs: Connect stringA + stringB + stringC
 * 
 * @param x1 string A
 * @param x2 string B
 * @param x3 string C
 * @return {Array}
 */
function neuron564(x1, x2, x3)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;
  outputs[2] = x3;

  arr = neuron520(outputs[1], outputs[2]);
  outputs[3] = arr[0];

  arr = neuron520(outputs[0], outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


Code made by AI:

Create your family tree for free