Skip to content

Instantly share code, notes, and snippets.

@palworth
palworth / _intro.md
Last active May 28, 2020 16:30 — forked from iandouglas/_intro.md
Mod 4, Week 4 Code Challenge

Goal for Today:

  • pseudocode and rough notes below
  • a working solution in code (Ruby or JavaScript)

Fork this gist, then click the Edit button at the top of the screen. Publish it as a secret gist, and submit that secret gist after one hour.

Only write the code in one programming language, you can remove whichever solution source file you don't need by clicking the trash can icon next to the filename you don't need.

class Pal
def keepers
keeper_nums = []
x = []
num_collection = 1..5000
num_collection.each do |num|
sum = num.to_s.reverse.to_i + num
if palindrome?(sum.to_s) && thousand?(sum.to_s)
keeper_nums << num
@palworth
palworth / New_reflections.md
Last active May 14, 2020 16:58 — forked from iandouglas/reflections.md
Mod 4 Tech Challenge Design/Pseudocode/Reaction Reflections

Instructions

  1. Fork this gist, then "edit" the gist
  2. Fill out the questions below
  3. Click the "Add file" button and add your source code to the gist
  4. Submit by the due time as instructed in Zoom

Do not publish your code on a public repl.it or repo or other public means.