# JS Study Group: Algorithms

• Oct 7, 2013 · 8:00 PM

Every other week we will be getting together to solve one large or a series of small algorithm puzzles in pairs or small groups. This is a highly interactive and supportive group to explore our understanding of Javascript and different algorithm concepts. We welcome all levels of JS experience!

Typical Agenda

8:00-8:10 - icebreaker/introduction/announcements
8:10-8:20 - present and discuss the algorithm(s)
8:20-9:15 - pair off and solve algorithm(s)
9:15-9:30ish - discuss solutions as a group

• ##### Gregory H.

Tonight's Algo:

A robot is located at the top left corner of a
5x5 grid and is trying to reach the bottom right corner.
The robot can move either up, down, left, or right, but
cannot visit the same spot twice. How many possible unique
paths are there to the bottom right corner?

Make your solution work for a grid of any size.

October 7, 2013

• ##### Hamilton C.

Nevermind, http://www.hamiltondr...­ here's my solutions. First one was pretty slow, but the second one flies through.

October 8, 2013

• ##### Gregory H.

2: 2
3: 12
4: 184

October 8, 2013

• ##### A former member

Could you please post the final optimized solution, as well as the a run down of the correct solutions for n of 2 to 6? Want to check mine is working proper, then see how it stacks up to the group's final.

October 7, 2013

• ##### Gregory H.

the most optimized we came up with is the third solution on the gist link above

October 8, 2013

• ##### Gregory H.

2: 2
3: 12
4: 184

October 8, 2013

• ##### Hamilton C.

Tonight was great. Thanks Greg.

October 7, 2013

• ##### WIL P.

Disappointed to note work is intruding and that I cannot attend tonight. I look forward to attending the next one.

October 7, 2013

• ##### Stephen B.

can't make it. undoing my rsvp

October 7, 2013

• ##### Joao M.

Ditto. Next time.

October 7, 2013

• ##### WIL P.

Is it safe to park/lock my bicycle at Hack Reactor?

October 7, 2013

• ##### Gregory H.

Some of the students use the bike section in the basement of the building. I would bring a lock but it should be fine.

October 7, 2013

### 40 went

• ##### Sam
• A former member
• A former member
• A former member
• A former member
• A former member
• A former member
• A former member
• A former member
• A former member
• A former member
• A former member
• A former member
• A former member
• A former member
• A former member

### San Francisco, CA

Founded Feb 26, 2013

#### People in this Meetup are also in:

• ##### Angular-SF

3,835 Members

• ##### AI Project Group

3,248 AI Scientists

• ##### Lean Startup Circle

7,845 Awesome Startup People

• ##### Bay Area Spark Meetup

8,305 Spark Enthusiasts

• ##### Advanced Spark and TensorFlow Meetup

5,847 Spark and TensorFlow Experts

• ##### Game and App Devs

4,528 Members