EcutDavid / oj-practices

My solutions for online coding judgment platforms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Repo for my accepted solutions in online coding judgment platforms like Codeforces, Google Code Jam and SPOJ.

Project Euler

I'm also working on solving Project Euler problems on hackerrank. Why not projecteuler.net?

  • Hackerrank get hidden test cases, reducing the possibility of "a broken solution but happen to produce correct answer for a single test case"(projecteuler.net has one test case per problem).
  • Hackerrank, as many other OJ platform, has a time limitation, which provides the incentive for producing low time-complexity solutions.

Here is the process: https://www.hackerrank.com/results/projecteuler/davidguandev

It's mentioned in projecteuler.net that anyone should not open source their solution(so I'm not open source the solutions here), if you interested in my solutions, plz talk to me privately, I can send them to you but plz don't open source them :)

Notes

27/10/2018: made ./publish.go for fun and encouraging(deleted on 6/7/2019 due to reflecting that the total number of solved problem does not really matter.).

20/11/2018: when it comes to big input, for example https://codeforces.com/contest/1062/problem/C, which has a text token that is 10^5 long, use https://golang.org/pkg/bufio/#NewReaderSize instead of the scanner(which has a smaller buffer), more context is in this stack overflow link

22/11/2018: made https://github.com/EcutDavid/codeforces-validator for testing basic cases quickly without copy & paste.

25/11/2018: add marked-and-then-solved.md for problems that I had fight hard.

19/1/2019: add marked-and-then-solved.md as the central place to take notes, instead of taking notes inside solutions, for easier later-stage-compare, also, started using C++.

Profiles

https://codeforces.com/profile/davidguandev

About

My solutions for online coding judgment platforms


Languages

Language:C++ 76.0%Language:Go 19.4%Language:JavaScript 4.6%