Giter Club home page Giter Club logo

rushdevsdailygo's Introduction

RushDevsDailyGo

GitHub go.mod Go version CI License FOSSA Status FOSSA Status
Go Report Card CodeFactor Maintainability codecov Test Coverage
DeepSource Active Issues

"DevOps is fun until something breaks"

About

Update 2023-06-11: This is now just a reference repo for my table driven tests, benchmarks and CI/CD. It will be active for a while before archiving to gradually migrate CI/CD services to another repo.

Go Code for dailies challenges from the Discord server RushDevs in Channel ๐Ÿง  | daily-aufgaben
Here is the invite link to join the server: https://discord.gg/ABAkZeyr9A

Each daily is accompanied by a README.md file with the task description, as well as unit tests and benchmarks.

The solutions are in submittable form, so you can copy&paste it via dm to the responsible code reviewer. Some dailies do have additional functions to signify the best possible solution.

I have created this repo to learn more about alogrithms as well as to fiddle with the CI/CD provided by GitHub Actions. The tests and CI behind this repo are far more sophisticated than the submissions for the dailies, so be sure to check them out.

Dailies

The numbering is from the Discord channel, some numbers are missing, because those dailies were HTML/CSS challenges rather than alogrithm challenges.

# Name Solution Tests Benchmarks Time Space Remarks
1 intersection โœ”๏ธ โœ”๏ธ โœ”๏ธ O(n+m) O(n)
2 meeting_rooms
3 min_operations
5 shortest_dist
7 pascal_triangle_row
9 sum_combinations
11 one_bits โœ”๏ธ โœ”๏ธ โœ”๏ธ O(1) O(1) Hamming Weight
13 majority_element โœ”๏ธ โœ”๏ธ โœ”๏ธ O(log n) O(n)
14 maxNonAdjacentSum โœ”๏ธ โœ”๏ธ โœ”๏ธ O(n)
16 generateAllSubsets โœ”๏ธ โœ”๏ธ โœ”๏ธ O(2^n)
18 searchMatrix โœ”๏ธ โœ”๏ธ โœ”๏ธ O(log nm) O(n+m) Unfold to 1D array
20 find_num โœ”๏ธ โœ”๏ธ โœ”๏ธ O(log n+m) O(n)
21 findAllConcatenatedWordsInADict โœ”๏ธ โœ”๏ธ โœ”๏ธ O(log n^3)
23 findKthLargest โœ”๏ธ โœ”๏ธ โœ”๏ธ O(n) O(n) quickselect algo
24 closest_3sum โœ”๏ธ โœ”๏ธ โœ”๏ธ O(n log n) O(n) Go has pdqsort as default
26 remove_dups โœ”๏ธ โœ”๏ธ โœ”๏ธ O(n) O(1) len() points to size of address
27 canSpell โœ”๏ธ โœ”๏ธ โœ”๏ธ O(n) O(n)
28 create_palindrome โœ”๏ธ โœ”๏ธ โœ”๏ธ O(n) O(n) w/o recursion
31 checkPerfectNumber โœ”๏ธ โœ”๏ธ โœ”๏ธ O(โˆš(log(n))) O(1) โค
32 frac_to_dec โœ”๏ธ โœ”๏ธ โœ”๏ธ O(?) Hard w/o recursion
34 longest_substring_with_k_distinct_characters โœ”๏ธ โœ”๏ธ โœ”๏ธ O(n) O(1) Learned sliding windows
36 sortNums โœ”๏ธ โœ”๏ธ โœ”๏ธ O(n) O(1) casual pointer swapping
38 courses_to_take โœ”๏ธ โœ”๏ธ O(V+E) O(n) graph adjacency list

License

This repository is licensed under the Boost Software License 1.0. See LICENSE

Further attribution belongs to:

  • Synertry
  • Google (The Go Authors)
    • Coding language Go
    • module go-cmp for diff beautifier in comparing test outputs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.