{"id":19341028,"url":"https://github.com/pawanmsr/n-methods","last_synced_at":"2026-05-12T23:32:08.316Z","repository":{"id":48619849,"uuid":"259036435","full_name":"pawanmsr/n-methods","owner":"pawanmsr","description":"Common Algorithms, Templates, and Educational Fun for Quick Reference.","archived":false,"fork":false,"pushed_at":"2026-02-27T09:58:31.000Z","size":704,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-27T14:56:33.155Z","etag":null,"topics":["algorithms","assorted-scripts","code-blocks","fun","garbage","learning","mathematics","sport-programming","temporary-repository"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pawanmsr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-04-26T13:23:49.000Z","updated_at":"2026-02-27T09:58:37.000Z","dependencies_parsed_at":"2023-11-11T16:24:54.574Z","dependency_job_id":"443ab0ca-0da4-48e0-9f96-a3e357ca1d0b","html_url":"https://github.com/pawanmsr/n-methods","commit_stats":null,"previous_names":["pawanmsr/n-methods"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pawanmsr/n-methods","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawanmsr%2Fn-methods","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawanmsr%2Fn-methods/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawanmsr%2Fn-methods/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawanmsr%2Fn-methods/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pawanmsr","download_url":"https://codeload.github.com/pawanmsr/n-methods/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawanmsr%2Fn-methods/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32961733,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"ssl_error","status_checked_at":"2026-05-12T23:30:18.191Z","response_time":102,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithms","assorted-scripts","code-blocks","fun","garbage","learning","mathematics","sport-programming","temporary-repository"],"created_at":"2024-11-10T03:28:59.456Z","updated_at":"2026-05-12T23:32:08.300Z","avatar_url":"https://github.com/pawanmsr.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"Algorithms\n==========\n\nCommon Algorithms and Templates.  \nPersonal. Educational. Quick Reference.  \n\nNon-formal - Casual.\n\nBuild\n-----\n\nBuild using CMake.\n\n```shell\n# Run build script.\nbash build.sh [options: -h|c]\n# Note: for minor modifications, run without flags\n# or options to use build cache for quicker builds.\n\n```\n\nNotes and More\n--------------\n\nSource code in [src](/src/) for sport programming, assessments and limited use of STLs.  \n\n| Operations (1 sec) | Time Complexity         |\n| ------------------ | ----------------------- |\n| 10^7               | O(N) May be accepted    |\n| 10^6               | O(N)                    |\n| 10^5               | O(N * log(N))           |\n| 10^3               | O(N ^ 2)                |\n| 10^2               | O(N ^ 3)                |\n| 10^9               | O(log(N)) or O(sqrt(N)) |\n\n`builtin` functions are often pre-optimized by the compiler.\n\nUse small functions at the top of the solution. Append larger functions or group of functions, with declarations at the top, but don't be finicky about style - there are no reviews. Prefer bottom-up iterative in favor of top-down recursive. Lookout for sneaky signed overflows. Use C-style io and initializations for slightly quicker execution. Constant access time for large arrays (upwards of ten power six) increases dramatically - prefer hashmaps. Besides algorithms and data structures, also work with number theory and algebra.  \n\nRun the build before copying the source templates into the solution. At least add basic tests for all new implementations.\nTests in [test](/test/) and method signatures in [include](/include/). Run CTest to verify and trust source code.\n\n\u003cpre\u003e\n.\n+-- build / bin\n|   - binaries\n+-- doc\n|   - documentation\n|   +-- asset\n|   |    - graphics\n+-- include\n|   - headers\n+-- lib\n|   - external libraries\n+-- play\n|   - templates\n|   - scripts\n+-- src\n|   - source code\n+-- test\n|   - unit tests\n\n\u003c/pre\u003e\n\nProblem scripts in play.\n\nNote to self: archive (or delete, if and) when all milestones have been touched at least once.\n\nI seek refuge in my fields of study to recharge, re-orient and organise my mind. This casual repository also contains some of my scattered thoughts that are purely educational and (those others may find useful, especially those in adversity). Selectively disregard it. No more casual additions are intended.  \n\nAppreciation\n------------\n\nTODO.\n\nCourse notes, books, online platforms, blogs, and tutorials.\nCitations in respective source code docstring.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawanmsr%2Fn-methods","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpawanmsr%2Fn-methods","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawanmsr%2Fn-methods/lists"}