increment subitem

Inputs

  • count of items
  • count of subitems
  • 1 item = X subitems
  • increment subitem

Outputs

  • count of items
  • count of subitems

Neuron type

Checked - ready to generate algorithm

Patterns

Pattern Input Output
1.
count of items: 2000
count of subitems: 1
1 item = X subitems: 12
increment subitem: 5
count of items: 2000
count of subitems: 6
2.
count of items: 2018
count of subitems: 5
1 item = X subitems: 12
increment subitem: 24
count of items: 2020
count of subitems: 5
3.
count of items: 0
count of subitems: 50
1 item = X subitems: 60
increment subitem: 20
count of items: 1
count of subitems: 10

Applicable neurons

  • Plus (x + y)
  • Minus (x - y)
  • Division (x รท y)
  • 1
  • a > b
  • a = b
  • a < b
  • IF a=b THEN c ELSE d
  • IF (1) THEN a ELSE b
  • If number is without decimal part then X else Y
  • a < b
  • Rounding to whole tenths of something
  • word hello
  • (a, b]
  • Contains string word A or B?
  • a-z
  • middle
  • First child X position
  • value is not null

Algorithm

Algorithm doesn't exists


Create your family tree for free