diff options
author | William Carroll <wpcarro@gmail.com> | 2020-02-11T17·07+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-02-11T17·11+0000 |
commit | 85cdd46f0082afb8ed09dcb0983071daa6bde38c (patch) | |
tree | 0c18373982f3621b3a5408690faf4f5de6443d33 /deepmind/part_two/reverse-string-in-place.ts | |
parent | 3afb56a5e5274611c3c5d0f7e2f4a8965575ff40 (diff) |
Attempt to support TypeScript for coding challenges
I was a bit weaker than I expected to be in my most recent interview using TypeScript. To improve, I think I'd like to attempt solving some of the InterviewCake.com questions using TypeScript. If you've read the previous commits, the inspiration for `run` arose because I need to call `npx ts-code <file>`, which is easy enough to remember, but I'd still rather just call `run <file>`.
Diffstat (limited to 'deepmind/part_two/reverse-string-in-place.ts')
-rw-r--r-- | deepmind/part_two/reverse-string-in-place.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deepmind/part_two/reverse-string-in-place.ts b/deepmind/part_two/reverse-string-in-place.ts new file mode 100644 index 000000000000..628b95a6bf91 --- /dev/null +++ b/deepmind/part_two/reverse-string-in-place.ts @@ -0,0 +1,6 @@ +function main(x: number) { + console.log(x + 1); + console.log("Hello, world."); +} + +main(10); |