Skip to content

CP Stream 1

Anurudh Peduri edited this page Oct 22, 2020 · 11 revisions

Problems

Basic

  1. https://codeforces.com/contest/4/problem/A (solution)
  2. https://codeforces.com/contest/1/problem/A (solution)
  3. https://codeforces.com/contest/71/problem/A (solution)
  4. https://codeforces.com/contest/1328/problem/A (solution)
  5. https://codeforces.com/contest/1327/problem/A (solution)
  6. https://codeforces.com/contest/1426/problem/A (solution)

Easy

  1. https://codeforces.com/contest/1399/problem/A (solution)
  2. https://codeforces.com/contest/1399/problem/B (solution)
  3. https://atcoder.jp/contests/abc125/tasks/abc125_b (solution)
  4. https://atcoder.jp/contests/abc159/tasks/abc159_a (solution)

Tricky

  1. https://codeforces.com/contest/1327/problem/E (solution)
  2. https://atcoder.jp/contests/abc125/tasks/abc125_c (solution)
  3. https://cses.fi/problemset/task/1068/ (solution)

Info

Date: Wednesday, 21-10-2020
Time: 9:00 PM IST
Venue: Teams - Programming Club Group

About: I'll be discussing some basic problems and solving them in Haskell, the Haskell way.
Recording

FAQ

1. How much Haskell should I know beforehand?
A. None. The session will be introductory, and I'll explain the language as we solve problems.

2. What are the prerequisites?
A. Basic programming (imperative: like c/c++) and high school math (sets, functions, higher order functions).

3. Do I need to setup Haskell?
A. Not necessary, but it is recommended. You'll be able to test out the code yourself. You can find setup instructions here.

4. What level of problems will be discussed?
A. I'll discuss very basic problems, so we can focus on the language and it's features.

5. What is Haskell?
A. It is a pure lazy functional programming language. In simple words, Pure means that the language is purely mathematical. Lazy refers to lazy evaluation - it only computes something when needed. Functional means you can deal with higher order functions (functions of functions).

6. Why Haskell?
A. Because it's purely mathematical, it helps us formulate solutions in a much more concise and beautiful way. This also helps sharpen our thinking and understanding of problems and solutions.

7. Will this help me improve in CP?
A. Most likely not, at least directly. But it might improve your general problem solving skill, which might be useful. And it's fun.

Clone this wiki locally