Search Results

Search found 2 results on 1 pages for 'untwisted'.

Page 1/1 | 1 

  • Multiplying numbers on horizontal, vertial, and diagonal lines

    - by untwisted
    I'm currently working on a project Euler problem (www.projecteuler.net) for fun but have hit a stumbling block. One of the problem provides a 20x20 grid of numbers and asks for the greatest product of 4 numbers on a straight line. This line can be either horizontal, vertical, or diagonal. Using a procedural language I'd have no problem solving this, but part of my motivation for doing these problems in the first place is to gain more experience and learn more Haskell. As of right now I'm reading in the grid and converting it to a list of list of ints, eg -- [[Int]]. This makes the horizontal multiplication trivial, and by transposing this grid the vertical also becomes trivial. The diagonal is what is giving me trouble. I've thought of a few ways where I could use explicit array slicing or indexing, to get a solution, but it seems overly complicated and hackey. I believe there is probably an elegant, functional solution here, and I'd love to hear what others can come up with.

    Read the article

  • How should my CAT6e cable be terminated? No pairs?

    - by user231465
    I have just bought 60 meters of CAT6e cables, sold as "4 pair UTP RJ45". I have looked at various videos on Youtube but I cannot determine the correct wiring. all the colors of the cable I saw there are different from mine. Mine is untwisted, and it is not color coded. I have 8 pin connectors all of a single color. How should I wire this cable? EDIT THE PACKAGE DOES SAY TWISTED but they are not (twisted).

    Read the article

1