Categorygithub.com/Synertry/RushDevsDailyGo
repository
0.0.0-20240119104311-e86dc92adef9
Repository: https://github.com/synertry/rushdevsdailygo.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

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.

#NameSolutionTestsBenchmarksTimeSpaceRemarks
1intersection✔️✔️✔️O(n+m)O(n)
2meeting_rooms
3min_operations
5shortest_dist
7pascal_triangle_row
9sum_combinations
11one_bits✔️✔️✔️O(1)O(1)Hamming Weight
13majority_element✔️✔️✔️O(log n)O(n)
14maxNonAdjacentSum✔️✔️✔️O(n)
16generateAllSubsets✔️✔️✔️O(2^n)
18searchMatrix✔️✔️✔️O(log nm)O(n+m)Unfold to 1D array
20find_num✔️✔️✔️O(log n+m)O(n)
21findAllConcatenatedWordsInADict✔️✔️✔️O(log n^3)
23findKthLargest✔️✔️✔️O(n)O(n)quickselect algo
24closest_3sum✔️✔️✔️O(n log n)O(n)Go has pdqsort as default
26remove_dups✔️✔️✔️O(n)O(1)len() points to size of address
27canSpell✔️✔️✔️O(n)O(n)
28create_palindrome✔️✔️✔️O(n)O(n)w/o recursion
31checkPerfectNumber✔️✔️✔️O(√(log(n)))O(1)
32frac_to_dec✔️✔️✔️O(?)Hard w/o recursion
34longest_substring_with_k_distinct_characters✔️✔️✔️O(n)O(1)Learned sliding windows
36sortNums✔️✔️✔️O(n)O(1)casual pointer swapping
38courses_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