Code Katas #2 – exes-os, fat-fingers, jaden-case, sum-pairs

Show starts at 1:38
Code from the stream is here: https://github.com/CodingGarden/code-katas/tree/master/episode_002
Suggest Katas for me to solve here: https://github.com/CodingGarden/code-katas/issues/1
Search for more Coding Garden videos here: https://cg-videos.now.sh
View the Coding Garden FAQ here: https://github.com/CodingGardenCommunity/app-wiki/wiki/Frequently-Asked-Questions

10 Comments

  1. Eric Alexander on December 31, 2020 at 10:43 pm

    stutter every where!! srterrrrer sdsdsd sdds

  2. Coding Garden on December 31, 2020 at 10:45 pm

    Show starts at 1:38

  3. michał botor on December 31, 2020 at 10:46 pm

    i haven’t tested this code on large arrays, but personally i would try to solve the ‘sum-paris’ problem with this code:

    const sumPairs = (arr, sum) => {
    const L = arr.length;
    let smallestRightIdx = L;
    let pair = null;
    for (let leftIdx = 0; leftIdx < L-1; leftIdx++) {
    for (let rightIdx = leftIdx + 1; rightIdx < L; rightIdx++) {
    const x = arr[leftIdx];
    const y = arr[rightIdx];
    if (x + y === sum && rightIdx < smallestRightIdx) {
    smallestRightIdx = rightIdx;
    pair = [x, y];
    }
    }
    }
    return pair;
    }

  4. TheSourLemonz on December 31, 2020 at 11:04 pm

    rare hair down cj

  5. TMCicuurd12b42 on December 31, 2020 at 11:13 pm

    capslock + shift + letter = lower case… on the pc… typing "aNother"… meant to be typed as: a, shift + n, o, t, h , e , r. the large pinky typing would result in: capslock, shift + n, o, t, h , e , r. the final result being: nOTHER

  6. Buncha on December 31, 2020 at 11:13 pm

    Thank you!

  7. Vasyl Shpak on December 31, 2020 at 11:19 pm

    one more episode to see the short hair xD

  8. Christian Augustin on December 31, 2020 at 11:21 pm

    On Windows shift with capslock on makes letters lowercase.
    Will keep on watching these, great stuff!

  9. Emi K on December 31, 2020 at 11:22 pm

    Your kata videos have inspired me to join the codewars site! Thank you for breaking down the problems like you do.

  10. FitExperiments on December 31, 2020 at 11:23 pm

    Nice, learning C¤ atm, but I see JavaScript is sijmilar (have done python before)

Leave a Comment