3 digits of ascii code into character

Description

connect 3 digits to one ascii number and change it to character

Inputs

  • 1. digit
  • 2. digit
  • 3. digit

Outputs

  • ascii code

Neuron type

Best algorithm has been found - locked

Patterns

Pattern Input Output
1.
1. digit: 0
2. digit: 9
3. digit: 7
ascii code: a
2.
1. digit: 0
2. digit: 7
3. digit: 1
ascii code: G
3.
1. digit: 1
2. digit: 2
3. digit: 1
ascii code: y

Applicable neurons

  • Connect - three inputs
  • Ascii code into character
  • fileName from path
  • when sentence contains a, return b, else return c
  • a ≤ b
  • >, < opposite
  • Cut String At specific character

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]];
}


/**
 * Ascii code into character: 
 *
 * @param x1 ascii code
 * @return {Array}
 */
function neuron585(x1)
{
return [String.fromCharCode(x1)];
}

/**
 * 3 digits of ascii code into character: connect 3 digits to one ascii number and change it to character
 * 
 * @param x1 1. digit
 * @param x2 2. digit
 * @param x3 3. digit
 * @return {Array}
 */
function neuron638(x1, x2, x3)
{
  var outputs = [];
  outputs[0] = x1;
  outputs[1] = x2;
  outputs[2] = x3;

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

  arr = neuron585(outputs[3]);
  outputs[4] = arr[0];

  return[outputs[4]];
}


Code made by AI:

Create your family tree for free