CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 24 Aug 2025 04:10:05 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20170830190009
location: https://web.archive.org/web/20170830190009/https://github.com/kylecordes/kata-19-java
server-timing: captures_list;dur=0.543963, exclusion.robots;dur=0.019794, exclusion.robots.policy;dur=0.008246, esindex;dur=0.011249, cdx.remote;dur=10.766784, LoadShardBlock;dur=145.284286, PetaboxLoader3.datanode;dur=56.719149, PetaboxLoader3.resolve;dur=45.252696
x-app-server: wwwb-app214
x-ts: 302
x-tr: 182
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app214; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 302
server: nginx
date: Sun, 24 Aug 2025 04:10:06 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20180610233138
location: https://web.archive.org/web/20180610233138/https://github.com/kylecordes/kata-19-java
server-timing: captures_list;dur=0.601526, exclusion.robots;dur=0.021806, exclusion.robots.policy;dur=0.009263, esindex;dur=0.012819, cdx.remote;dur=44.619435, LoadShardBlock;dur=57.465009, PetaboxLoader3.datanode;dur=145.395165, load_resource;dur=725.122798, PetaboxLoader3.resolve;dur=461.858954
x-app-server: wwwb-app214
x-ts: 302
x-tr: 875
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 24 Aug 2025 04:10:08 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: GitHub.com
x-archive-orig-date: Sun, 10 Jun 2018 23:31:38 GMT
x-archive-orig-transfer-encoding: chunked
x-archive-orig-status: 200 OK
x-archive-orig-cache-control: no-cache
x-archive-orig-vary: X-PJAX
x-archive-orig-set-cookie: logged_in=no; domain=.github.com; path=/; expires=Thu, 10 Jun 2038 23:31:38 -0000; secure; HttpOnly
x-archive-orig-set-cookie: _gh_sess=cjUvZnliOVg0QVNnWkpIZmVlN3ZpeEkvZG9iKy9RRUp5bk8vN21sOFVPNHdqRlh5TmN6SVoydnBhcmdHVFdKNjRQckNaaW1makRtNFJvRUppaktseUkvYUV3R2ZIWWZUMklYdWE1L3BwY2NoRUNLelFhRUR3dFo0OEJKSiswSTRJbDZCaHMwaWYwcFM0VEhYMmtQeXhwZ2h3ellUOUZjaU5hNUw1T0s3YWJVczVDQ0VsY1BFZ1F0Yk9XMU1Wc01aUjl0OGpUNDJRV2tNM0lZTVlpRGgwcWhMNjIvaFNqTWdZYnVpY3ZEMnppQnVFblI2Q1NvNWg0eEFZZVVzR0F3bW92WFNSWUpweDEzMDRJdEdDL1BTOG1FN0Y2Rkp0VFhwY2ZlQWs2Q0hGbFkwTVYwbDJXbmNNRGVJRWdRNlViYlY5Rm9taGFaYXp0Q3MxOU41eGp1Sk1EcDFDK2dpZWxPVHppM2VOdzZUYUNaelYzTWoxZXByNWdCSVY1VUg3VjR3MHJESmlWZFg1NXVHQ2JFUHc0MlY3YzQ0S2ZCSFhKRXQrcy8rSlBaeGl1QT0tLS85NUVLeWlhSE81eDlaNU9haTBjRlE9PQ%3D%3D--039efecf97b3522f2b76d3da59bf782fee84935b; path=/; secure; HttpOnly
x-archive-orig-x-request-id: 07904869-e681-43ab-ae36-0716fb2a10a7
x-archive-orig-x-runtime: 0.217166
x-archive-orig-strict-transport-security: max-age=31536000; includeSubdomains; preload
x-archive-orig-x-frame-options: deny
x-archive-orig-x-content-type-options: nosniff
x-archive-orig-x-xss-protection: 1; mode=block
x-archive-orig-expect-ct: max-age=2592000, report-uri="https://api.github.com/_private/browser/errors"
x-archive-orig-content-security-policy: default-src 'none'; base-uri 'self'; block-all-mixed-content; connect-src 'self' uploads.github.com status.github.com collector.githubapp.com api.github.com www.google-analytics.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com wss://live.github.com; font-src assets-cdn.github.com; form-action 'self' github.com gist.github.com; frame-ancestors 'none'; frame-src render.githubusercontent.com; img-src 'self' data: assets-cdn.github.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com *.githubusercontent.com; manifest-src 'self'; media-src 'none'; script-src assets-cdn.github.com; style-src 'unsafe-inline' assets-cdn.github.com
x-archive-orig-x-runtime-rack: 0.226214
x-archive-orig-x-github-request-id: C752:57BE:43A6B53:7DFA606:5B1DB4DA
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 10 Jun 2018 23:31:38 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Wed, 30 Aug 2017 19:00:09 GMT", ; rel="prev memento"; datetime="Wed, 30 Aug 2017 19:00:09 GMT", ; rel="memento"; datetime="Sun, 10 Jun 2018 23:31:38 GMT", ; rel="next memento"; datetime="Tue, 24 Nov 2020 21:47:16 GMT", ; rel="last memento"; datetime="Tue, 24 Nov 2020 21:47:16 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: archiveteam_github_20180703061713/archiveteam_github_20180703061713.megawarc.warc.gz
server-timing: captures_list;dur=0.694428, exclusion.robots;dur=0.026062, exclusion.robots.policy;dur=0.010539, esindex;dur=0.014873, cdx.remote;dur=20.139633, LoadShardBlock;dur=1104.724888, PetaboxLoader3.datanode;dur=902.888553, PetaboxLoader3.resolve;dur=320.365243, load_resource;dur=122.804433
x-app-server: wwwb-app214
x-ts: 200
x-tr: 1338
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
GitHub - kylecordes/kata-19-java: My solution to PragDave's Code Kata 19, from 2003, in Java
Fetching latest commit…
Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
My solution to PragDave's Code Kata 19, from 2003, in Java
https://kylecordes.com/2003/pragdave-k…
Java
Clone or download
Launching GitHub Desktop...
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop...
If nothing happens, download GitHub Desktop and try again.
Launching Xcode...
If nothing happens, download Xcode and try again.
Launching Visual Studio...
If nothing happens, download the GitHub extension for Visual Studio and try again.

Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information. | |||
![]() |
src/wordchain | initial 2003 release |
|
![]() |
.classpath | initial 2003 release |
|
![]() |
.gitignore | initial 2003 release |
|
![]() |
.project | initial 2003 release |
|
![]() |
README.txt | fix more smart quotes in the README |
|
README.txt
PragProg Code Kata 19 Kyle Cordes's solution Copyright 2003 Kyle Cordes More info online: https://kylecordes.com/2003/pragdave-kata-19 I've been watching PragDave's Code Katas with interest, since I am also in the habit of occassionally solve a small, standalone programming problem just for the learning experience. Today I worked out a solution for Kata 19, Word Chains. I did this Kata the "pure" way, i.e. without looking at any of the discussion of solution approaches before coding. Here are the results. I wrote the code this time in Java. Unlike Dave's published solution, I didn't precalculate adjacency lists; rather I took the more brute-force approach of scanning the word list at each step looking for neighbor words. In spite of that non-optimization, this still calculates the word chains for a bunch of examples in a few seconds (total). I was curious how much of the program's time is spent checking for neighbor words; this provided a good reason to try out a profiler plug for Eclipse, available on SourceForge. The profiler worked fine, and told me, as I would have guessed, that the program spends approximately 100% of it's time looking at words to decide if they are neighbors (in the word-chains sense). Of course the usual optimization advice applies: it would have been actively stupid of me to optimize without measuring where the slow parts are.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.