diff options
| author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2025-10-27 00:29:19 +0000 |
|---|---|---|
| committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2025-10-27 00:29:19 +0000 |
| commit | 03ba2096c1ba186d0b6045423d8d3de0f243ef37 (patch) | |
| tree | aa2388f6579bb9073ab7d70734871a11a996c1cc | |
| parent | e3863557f5762735bc2c911f94a96a84dae2d8f5 (diff) | |
| download | algorithms-03ba2096c1ba186d0b6045423d8d3de0f243ef37.tar.gz algorithms-03ba2096c1ba186d0b6045423d8d3de0f243ef37.tar.bz2 algorithms-03ba2096c1ba186d0b6045423d8d3de0f243ef37.zip | |
bsearch-gen -> num-gen
| -rw-r--r-- | impls/bsearch-gen.el | 9 | ||||
| -rw-r--r-- | impls/num-gen.el | 10 |
2 files changed, 10 insertions, 9 deletions
diff --git a/impls/bsearch-gen.el b/impls/bsearch-gen.el deleted file mode 100644 index 79aac56..0000000 --- a/impls/bsearch-gen.el +++ /dev/null @@ -1,9 +0,0 @@ -(defconst *LIST-SIZE* 128) -(defconst *UPPER-BOUND* 1024) -(with-current-buffer (find-file "bsearch.txt") - (mapcar - #'(lambda (res) (insert (format "%s\n" res))) - (cl-loop - for i from 0 to *LIST-SIZE* - collect - (random *UPPER-BOUND*)))) diff --git a/impls/num-gen.el b/impls/num-gen.el new file mode 100644 index 0000000..e0ba7e0 --- /dev/null +++ b/impls/num-gen.el @@ -0,0 +1,10 @@ +(defconst *LIST-SIZE* 128) +(defconst *UPPER-BOUND* 1024) +(with-current-buffer (find-file "nums.txt") + (mapcar + #'(lambda (res) (insert (format "%s\n" res))) + (cl-remove-duplicates + (cl-loop + for i from 0 to *LIST-SIZE* + collect + (random *UPPER-BOUND*))))) |
