Skip to content
View slmcassio's full-sized avatar
🏠
Working from home
🏠
Working from home

Organizations

@nubank

Block or report slmcassio

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. SICP Exercise 3.18 SICP Exercise 3.18
    1
    ; Tortoise and Hare algorithm
    2
    ; This works by having two pointers crossing the list
    3
    ; One moves fast (hare), the other moves slowly (tortoise)
    4
    ; If at a given moment in time both matches it means that there's a cycle
    5
    ; This algorithm runs with constant space 
  2. SICP Exercise 3.18 SICP Exercise 3.18
    1
    ; Keep a list of the visited nodes
    2
    ; While crossing the list, check if the current node is on the visited list of nodes
    3
    ; If true, it's circular
    4
    
                  
    5
    ; Using eq?, we can implement a useful procedure called memq. 
  3. Implementing functions to calculate ... Implementing functions to calculate the largest prime factor of a given number
    1
    (defn primes-iter
    2
    	[primes candidate limit]
    3
    	(letfn [(is-prime? 
    4
    			 []
    5
    			 (->> primes
  4. query-json query-json Public

    Search JSON using regex

    JavaScript 12 3