Giter Site home page Giter Site logo

leasurton / competitiveprogramming Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yao-yin/competitiveprogramming

0.0 0.0 0.0 6.46 MB

My solutions to the ant book (プログラミングコンテストチャレンジブック [第2版], aka 蟻本, aka 白书)

C++ 99.84% Python 0.16%

competitiveprogramming's Introduction

My solutions to the ant book (プログラミングコンテストチャレンジブック [第2版], aka 蟻本, aka 白书)

What is the ant book?

It's a popular competitive programming book in Japan and China.

Motivition

To pass the coding interviews from big tech companies like FAANGMULA, I need to practice LeetCode-like problems. But tbh, I didn't learn much from the LeetCode after a certain stage (my leetcode contest rating is 2435, which is at the top 0.33% on 2022-03-26). Out of the consideration of interests and marginal benefit, I think it's a good idea to learn and practice entry level cp problems. To have an overall impression on cp about general problems and techniques, I chose to follow the ant book.

About the problems

I use the list on vjudge to track my effort. However, there are some problems we can't find the OJ like バクテリアの増殖 from Google Code Jam Japan 2011 Final. Other problems on the list are in the scope of this repository.

About the solutions

Nearly all of the code are written by me. But some of them are from the internet, there could be 2 reasons.

  • Most of problems are from POJ (Peking University JudgeOnline). POJ is using very old compilers and machines. It doesn't support the common optimization of STL and might require a tighter constant on implementation. I don't want to waste my time to do constant optimization to please the compilers and machines, especially on C++98. Instead I just use others' solutions with the source and put my code (good enough in time complexity) under it.

  • Some problems need long implementations, I don't like that so skipped them for now. I will implement them in the future (gugugu).

MISCELLANEOUS

Why is it called 蟻本 (the ant book) in JP?

Because there are 2 ants on the cover and the first problem of the book is Ants (POJ 1852).

Why is it called 白书 (the white book, 白い本) in China?

Because the cover is in white, people that love OI/ICPC have the convention to call famous cp textbooks with the color of the cover.

Comments on the book

It's definitely a great book. Problems are great, code in the book is clear and good to learn. But there are some concerns.

Please feel free to contact me if you have any feedbacks.

Email: InYuo1997 at gmail.com

competitiveprogramming's People

Contributors

yao-yin avatar

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.