Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Question

Notice removed Draw attention by Community Bot
Bounty Ended with edc65's answer chosen by Community Bot
minor copy-edit
Source Link
r3mainer
  • 19.8k
  • 7
  • 50
  • 83

In this challenge, your goal is to follow aan arrow and output the character it is pointing tooto.

The arrow is not pointing at c because it is divided by the a, meaning thatthis path never leads to a an arrow head.

The input will be a multilinemulti-stringline string in which you need to find the character the arrow is pointing at. There will only be one valid arrow. The valid arrow will only point to alphanumeric characters excluding S. A line will never overlap itself. e.g. -|-

There will only be one S in the string. The input will also be padded to be a rectangle (not necessarily a square).

In this challenge, your goal is to follow a arrow and output the character it is pointing too.

The arrow is not pointing at c because it is divided by the a meaning that path never leads to a an arrow head.

The input will be a multiline-string in which you need to find the character the arrow is pointing. There will only be one valid arrow. The valid arrow will only point to alphanumeric characters excluding S. A line will never overlap itself. e.g. -|-

There will only be one S in the string. The input will also be padded to be a rectangle (not necessarily a square)

In this challenge, your goal is to follow an arrow and output the character it is pointing to.

The arrow is not pointing at c because it is divided by the a, meaning this path never leads to an arrow head.

The input will be a multi-line string in which you need to find the character the arrow is pointing at. There will only be one valid arrow. The valid arrow will only point to alphanumeric characters excluding S. A line will never overlap itself. e.g. -|-

There will only be one S in the string. The input will also be padded to be a rectangle (not necessarily a square).

deleted 9 characters in body
Source Link
Downgoat
  • 29.2k
  • 6
  • 85
  • 157
  • S (capital) represents where the arrow starts.
  • - represents a horizontal line
  • + represents a possible change in axis. A valid arrow will never start with a +.
  • | represents a vertical line
  • > < V ^ any of these represent the arrow head. These will never connect to a + or a S.
  • S (capital) represents where the arrow starts.
  • - represents a horizontal line
  • + represents a possible change in axis. A valid arrow will never start with a +.
  • | represents a vertical line
  • > < V ^ any of these represent the arrow head. These will never connect to a + or a S.
  • S (capital) represents where the arrow starts.
  • - represents a horizontal line
  • + represents a possible change in axis. A valid arrow will never start with a +.
  • | represents a vertical line
  • > < V ^ any of these represent the arrow head. These will never connect to a +.
deleted 80 characters in body
Source Link
Downgoat
  • 29.2k
  • 6
  • 85
  • 157
  • S (capital) represents where the arrow starts.
  • - represents a horizontal line
  • + represents a possible change in axis. A valid arrow will never start with a +. Another + may be adjacent but the arrow should prioritize going on a - or | first.
  • | represents a vertical line
  • > < V ^ any of these represent the arrow head. These will never connect to a + or a S.
  • S (capital) represents where the arrow starts.
  • - represents a horizontal line
  • + represents a possible change in axis. A valid arrow will never start with a +. Another + may be adjacent but the arrow should prioritize going on a - or | first.
  • | represents a vertical line
  • > < V ^ any of these represent the arrow head. These will never connect to a +.
  • S (capital) represents where the arrow starts.
  • - represents a horizontal line
  • + represents a possible change in axis. A valid arrow will never start with a +.
  • | represents a vertical line
  • > < V ^ any of these represent the arrow head. These will never connect to a + or a S.
Loading
Notice added Draw attention by Downgoat
Bounty Started worth 50 reputation by Downgoat
added 10 characters in body
Source Link
Downgoat
  • 29.2k
  • 6
  • 85
  • 157
Loading
Tweeted twitter.com/#!/StackCodeGolf/status/643713774873145344
Post Undeleted by Downgoat
Post Deleted by Downgoat
Source Link
Downgoat
  • 29.2k
  • 6
  • 85
  • 157
Loading

AltStyle によって変換されたページ (->オリジナル) /