Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Maybe you need to change "price (more than 50,00)" in "resulting table schema" to just "price"? I tried to assign an alias to the "price" column.
You are using global variables (which is bad) but don't reset all of them between tests.
You should read again how BF works. It operates on some memory cells and
,
writes memory to output, while.
reads input to memory. Your code only works on input and output.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Thanks! :) I focused my attention on the wrong thing. The output of logs seemed strange, and it still seems so.
The logic of your code handles well when it compares NORTH against SOUTH or EAST against WEST (or viceversa), but doesn't when you need to go in the same direction twice in a row. Try to test for those scenarios. Example, you are given this array: |NORTH -> NORTH -> WEST -> WEST|;
And compare how it behaves with this other array: |NORTH -> SOUTH -> EAST -> WEST|;
Analize the outcome of both.
This comment is hidden because it contains spoiler information about the solution
For what I can see, you are almost done. You just have to think what will happen, let's say, for example, going north twice.
This comment is hidden because it contains spoiler information about the solution