[racket-users] Is there any HtDP recipes that combine the backtrack and accumulators?

2021-02-15 Thread piv det
Hi all, I'm reading HtDP recently, I found it's awesome to use HtDP's recipes to solve many real world questions. On the backtracking section (https://htdp.org/2020-8-1/Book/part_five.html#%28part._ch~3abacktrack%29) , there's an terrific example to help me understanding the graph search: (f

[racket-users] Does here any HtDP-y recipe for classic DP algorithm like backPack?

2019-01-06 Thread piv det
Here's the classic backpack question(https://www.lintcode.com/problem/backpack/description): Given n items with size Ai, an integer m denotes the size of a backpack. How full you can fill this backpack? Using classic DP with memoize to solve this problem in Racket would be ps1. I would like to

[racket-users] Any place to get keywords and constants of Racket?

2018-05-05 Thread piv det
I want to write a Racket mode for ace, Relate issue: https://github.com/ajaxorg/ace/issues/3659 I was wondering if maybe I could find the full list of keywords of Racket. The example of scheme language would be: var e = "case|do|let|loop|if|else|when", t = "eq?|eqv?|