Bobinas P4G
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • People

Notices by La Fée Verte (absinthe@qoto.org)

  1. La Fée Verte (absinthe@qoto.org)'s status on Saturday, 21-Dec-2019 18:27:04 UTC La Fée Verte La Fée Verte

    Back from Tahiti!!! Finished Day10 part 1 in the airport, but not sure how to handle part two. Nor, how to handle being 10 days behind!

    In conversation Saturday, 21-Dec-2019 18:27:04 UTC from qoto.org permalink
  2. La Fée Verte (absinthe@qoto.org)'s status on Tuesday, 10-Dec-2019 06:38:33 UTC La Fée Verte La Fée Verte

    I just completed "Sensor Boost" - Day 9 - Advent of Code 2019 #AdventOfCode #AdventOfCode2019 https://adventofcode.com/2019/day/9

    In conversation Tuesday, 10-Dec-2019 06:38:33 UTC from qoto.org permalink

    Attachments

    1. No result found on File_thumbnail lookup.
      Day 9 - Advent of Code 2019
  3. La Fée Verte (absinthe@qoto.org)'s status on Sunday, 08-Dec-2019 03:20:26 UTC La Fée Verte La Fée Verte

    I just completed "Amplification Circuit" - Day 7 - Advent of Code 2019 #AdventOfCode #AdventOfCode2019 https://adventofcode.com/2019/day/7

    In conversation Sunday, 08-Dec-2019 03:20:26 UTC from qoto.org permalink

    Attachments

    1. No result found on File_thumbnail lookup.
      Day 7 - Advent of Code 2019
  4. La Fée Verte (absinthe@qoto.org)'s status on Sunday, 01-Dec-2019 23:14:08 UTC La Fée Verte La Fée Verte

    #toyprogrammingchallenge

    Okay, this isn't me, but consider doing this this month:

    It is the Advent of Code for 2019
    Unfortunately the fediverse is not a supporter or OAth so you will have to use Twitter, Google, Github to login.

    https://adventofcode.com/2019

    In conversation Sunday, 01-Dec-2019 23:14:08 UTC from qoto.org permalink

    Attachments

    1. No result found on File_thumbnail lookup.
      Advent of Code 2019
  5. La Fée Verte (absinthe@qoto.org)'s status on Monday, 25-Nov-2019 19:35:22 UTC La Fée Verte La Fée Verte
    in reply to

    https://git.qoto.org/Absinthe/hamming

    In conversation Monday, 25-Nov-2019 19:35:22 UTC from qoto.org permalink

    Attachments

    1. La Fée Verte / hamming
      GitLab Enterprise Edition
  6. La Fée Verte (absinthe@qoto.org)'s status on Sunday, 24-Nov-2019 17:43:14 UTC La Fée Verte La Fée Verte

    #toyprogrammingchallenge

    Okay, here is a fun one. We've all seen Fibonacci sequences. But they are all played out. Let's look at a different sequence. They are called Hamming Numbers after Richard Hamming, who proposed the problem of finding computer algorithms for generating these numbers in ascending order.

    For number H is equal to 2**i * 3**j * 2**k where i,k,k are all non negative.

    For example
    2**0 * 3**0 * 5**0 = 1
    2**1 * 3**0 * 5**0 = 2
    2**0 * 3**1 * 5**0 = 3
    2**2 * 3**0 * 5**0 = 4
    2**0 * 3**0 * 5**1 = 5
    2**2 * 3**1 * 5**0 = 6
    2**3 * 3**0 * 5**0 = 8

    So hopefully that explains what the sequence looks like. Your challenge, if you choose to accept it is to generate the first 25 of them. An arbitrary nth one such as 1700th. And given a number X determine if it is or is not a valid hamming number.

    Here is the wiki article on them:

    https://en.wikipedia.org/wiki/Regular_number

    In conversation Sunday, 24-Nov-2019 17:43:14 UTC from qoto.org permalink
  7. La Fée Verte (absinthe@qoto.org)'s status on Friday, 15-Nov-2019 12:57:32 UTC La Fée Verte La Fée Verte

    #toyprogrammingchallenge

    Okay, here is one before the weekend.

    Conway's Game of Life. It is a simple concept. Set up some cool patterns and let it run on a good cycle. I just did it, using '*' and ' ' but feel free to do it graphically if you prefer. Here are the rules, and my code is in the same repo so let that be a spoiler warning:

    https://git.qoto.org/Absinthe/life-conway/blob/master/README.md

    In conversation Friday, 15-Nov-2019 12:57:32 UTC from qoto.org permalink
  8. La Fée Verte (absinthe@qoto.org)'s status on Wednesday, 13-Nov-2019 03:39:11 UTC La Fée Verte La Fée Verte

    why do people mention the presence or lack of eye contact in their cw protected selfies?

    In conversation Wednesday, 13-Nov-2019 03:39:11 UTC from qoto.org permalink
  9. La Fée Verte (absinthe@qoto.org)'s status on Tuesday, 12-Nov-2019 02:59:18 UTC La Fée Verte La Fée Verte

    def snail_sort(matrix):
    new_list = []

    while matrix:
    new_list.extend(matrix.pop(0))
    if not matrix:
    continue

    for i in range(len(matrix)):
    new_list.append(matrix[i].pop())
    if not matrix:
    break
    if not matrix:
    continue

    new_list.extend(reversed(matrix.pop()))
    if not matrix:
    continue

    for i in range(len(matrix) - 1, -1, -1):
    new_list.append(matrix[i].pop(0))
    if not matrix:
    break
    return new_list

    MATRIX = [
    [1, 2, 3, 4, 5],
    [16, 17, 18, 19, 6],
    [15, 24, 25, 20, 7],
    [14, 23, 22, 21, 8],
    [13, 12, 11, 10, 9],
    ]

    snail_sort(MATRIX)

    In conversation Tuesday, 12-Nov-2019 02:59:18 UTC from qoto.org permalink
  10. La Fée Verte (absinthe@qoto.org)'s status on Monday, 11-Nov-2019 00:12:43 UTC La Fée Verte La Fée Verte

    #toyprogrammingchallenge

    I borrowed this one from codewars

    Snail Sort
    Given an n x n array, return the array elements arranged from outermost elements to the middle element, traveling clockwise.

    array = [[1,2,3],
    [4,5,6],
    [7,8,9]]
    snail(array) #=> [1,2,3,6,9,8,7,4,5]
    For better understanding, please follow the numbers of the next array consecutively:

    array = [[1,2,3],
    [8,9,4],
    [7,6,5]]
    snail(array) #=> [1,2,3,4,5,6,7,8,9]
    This image will illustrate things more clearly:

    NOTE: The idea is not sort the elements from the lowest value to the highest; the idea is to traverse the 2-d array in a clockwise snailshell pattern.

    In conversation Monday, 11-Nov-2019 00:12:43 UTC from qoto.org permalink

    Attachments


    1. https://storage.gra5.cloud.ovh.net/v1/AUTH_011f6e315d3744d498d93f6fa0d9b5ee/qotoorg/media_attachments/files/005/998/896/original/9391ac3a9ed4f5d8.png
  11. La Fée Verte (absinthe@qoto.org)'s status on Thursday, 07-Nov-2019 18:09:55 UTC La Fée Verte La Fée Verte

    #toyprogrammingchallenge

    Here's a freebie!

    This problem was asked by Google.

    Given a list of integers S and a target number k, write a function that returns a subset of S that adds up to k. If such a subset cannot be made, then return null.

    Integers can appear more than once in the list. You may assume all numbers in the list are positive.

    For example, given S = [12, 1, 61, 5, 9, 2] and k = 24, return [12, 9, 2, 1] since it sums up to 24.

    In conversation Thursday, 07-Nov-2019 18:09:55 UTC from qoto.org permalink
  12. La Fée Verte (absinthe@qoto.org)'s status on Monday, 04-Nov-2019 04:47:28 UTC La Fée Verte La Fée Verte

    okay, this is not exactly a #toyprogrammingchallenge but I hope you hate this problem as much as I did...

    The problem is not just getting the right solution, but getting it in under the running timeout of 12000 ms. Good luck.

    https://www.codewars.com/kata/54d81488b981293527000c8f

    In conversation Monday, 04-Nov-2019 04:47:28 UTC from qoto.org permalink

    Attachments

    1. Codewars: Train your coding skills
      Codewars is where developers achieve code mastery through challenge. Train on kata in the dojo and reach your highest potential.
  13. La Fée Verte (absinthe@qoto.org)'s status on Friday, 25-Oct-2019 11:06:33 UTC La Fée Verte La Fée Verte
    in reply to

    I am not happy with the pythonicallity of this, but it solves the problem...

    https://git.qoto.org/Absinthe/justify

    In conversation Friday, 25-Oct-2019 11:06:33 UTC from qoto.org permalink
  14. La Fée Verte (absinthe@qoto.org)'s status on Friday, 25-Oct-2019 03:36:50 UTC La Fée Verte La Fée Verte

    #toyprogrammingchallenge

    Okay, here's one. I just finished helping someone worth through this. So it's pretty fun.

    Write a program in Python, that can accept a paragraph string and and page
    width and return an array of left AND right justified strings. NOTE: No words
    should be broken, the beginning and end of the line should be characters).

    You should provide instructions on how to execute your program and provide a
    sample output.

    Example:

    Sample input:

    Paragraph = "This is a sample text but a complicated problem to be solved, so
    we are adding more text to see that it actually works."

    Page Width = 20

    Output should look like this:

    Array [1] = "This is a sample"
    Array [2] = "text but a"
    Array [3] = "complicated problem"
    Array [4] = "to be solved, so we"
    Array [5] = "are adding more text"
    Array [6] = "to see that it"
    Array [7] = "actually works.”

    In conversation Friday, 25-Oct-2019 03:36:50 UTC from qoto.org permalink
  15. La Fée Verte (absinthe@qoto.org)'s status on Thursday, 24-Oct-2019 17:19:44 UTC La Fée Verte La Fée Verte

    Wow, lots of followers today!

    If you are interested in any of my coding challenges they should all be tagged with : #toyprogrammingchallenge

    If you put that in your search and scroll to to bottom you will see my original proposal. Here is a link with the explanation of where my head is at. The ones I post that I call freebies, are from a subscription to Job Interview problems, and they should be a little tricky, but are usually rated as easy, medium or hard.

    https://qoto.org/@Absinthe/102805659580967435

    In conversation Thursday, 24-Oct-2019 17:19:44 UTC from qoto.org permalink

    Attachments


  16. La Fée Verte (absinthe@qoto.org)'s status on Thursday, 24-Oct-2019 15:50:42 UTC La Fée Verte La Fée Verte

    #toyprogrammingchallenge

    Today's Freebie. It's marked as easy.

    This problem was asked by Amazon.

    Run-length encoding is a fast and simple method of encoding strings. The basic idea is to represent repeated successive characters as a single count and character. For example, the string "AAAABBBCCDAA" would be encoded as "4A3B2C1D2A".

    Implement run-length encoding and decoding. You can assume the string to be encoded have no digits and consists solely of alphabetic characters. You can assume the string to be decoded is valid.

    In conversation Thursday, 24-Oct-2019 15:50:42 UTC from qoto.org permalink
  17. La Fée Verte (absinthe@qoto.org)'s status on Monday, 21-Oct-2019 00:21:14 UTC La Fée Verte La Fée Verte

    #toyprogrammingchallenge
    Here's a freebie!

    This problem was asked by Snapchat.

    Given an array of time intervals (start, end) for classroom lectures (possibly overlapping), find the minimum number of rooms required.

    For example, given [(30, 75), (0, 50), (60, 150)], you should return 2.

    In conversation Monday, 21-Oct-2019 00:21:14 UTC from qoto.org permalink
  18. La Fée Verte (absinthe@qoto.org)'s status on Monday, 21-Oct-2019 00:15:07 UTC La Fée Verte La Fée Verte

    #toyprogrammingchallenge

    Here is one I have been playing with.

    Factorials and Fibonacci numbers are traditionally used as examples of recursive functions.

    Let's see them done without recursion with reasonable timing.

    In conversation Monday, 21-Oct-2019 00:15:07 UTC from qoto.org permalink
  19. La Fée Verte (absinthe@qoto.org)'s status on Thursday, 17-Oct-2019 02:20:36 UTC La Fée Verte La Fée Verte
    • 🎓 Dr. Freemo :jpf: 🇳🇱
    • Kyle

    @khird @freemo It is pretty well cleaned up now. and I fleshed out the list a little to make it iterable and printable and stuff. Take a peek!

    Please suggest one, just remember to include the hash tag

    #toyprogrammingchallenge

    In conversation Thursday, 17-Oct-2019 02:20:36 UTC from qoto.org permalink
  20. La Fée Verte (absinthe@qoto.org)'s status on Wednesday, 16-Oct-2019 00:48:44 UTC La Fée Verte La Fée Verte

    #toyprogrammingchallenge

    https://git.qoto.org/Absinthe/listoverlap

    In conversation Wednesday, 16-Oct-2019 00:48:44 UTC from qoto.org permalink

    Attachments


  • Before

User actions

    La Fée Verte

    La Fée Verte

    The green faerie

    Tags
    • (None)

    Following 0

      Followers 0

        Groups 0

          Statistics

          User ID
          22470
          Member since
          30 Aug 2019
          Notices
          32
          Daily average
          0

          Feeds

          • Atom
          • Help
          • About
          • FAQ
          • Privacy
          • Source
          • Version
          • Contact

          Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

          Creative Commons Attribution 3.0 All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.