>RunTimeFix
BookStudyPracticeInterviewsYouTubeCoursesAbout
Log inGet Started
Topics/Algorithms
beginner level

Algorithms

Quick Answer

What is Algorithms?

An algorithm is a step-by-step procedure that transforms input into output. RunTimeFix teaches algorithms the way they matter in practice: not as abstract theory, but as tools you reach for when you see a problem. We cover the foundational techniques — sorting, binary search on arrays and answer spaces, two pointers, sliding window, prefix sums and difference arrays — and build toward algorithmic paradigms like greedy, divide-and-conquer, and backtracking. Every algorithm comes with a complexity proof and a set of problems that make the technique stick.

  • algorithms
  • sorting
  • binary search
  • two pointers
  • sliding window
  • prefix sums
  • divide and conquer

Study Material for Algorithms

Ch 10: Sorting & Frequency Arrays

std::sort — The Workhorse · lower_bound & upper_bound — Binary Search in STL · binary_search — Boolean Existence Check · unique — Removing Consecutive Duplicates · next_permutation — Generating Permutations · Sorting Applications · Frequency Counting

Ch 15: Binary Search (Array & Answer Space)

Binary Search on a Sorted Array · STL Binary Search Functions · Binary Search on the Answer · Boundary Handling

Ch 14: Two Pointers & Sliding Window

Two Pointers (Opposite Direction) · Two Pointers (Same Direction) · Sliding Window (Fixed Size) · Sliding Window (Variable Size)

Ch 13: Prefix Sums & Difference Arrays

1D Prefix Sums · 2D Prefix Sums · Suffix Sums & Suffix Aggregates · Difference Arrays

Ch 16: Greedy Algorithms & Constructive Problems

The Greedy Paradigm · Sorting-Based Greedy · Interval Scheduling (Activity Selection) · The Exchange Argument · Constructive Algorithms

Related Topics

Data StructuresCompetitive ProgrammingComplexity Analysis
Was this helpful?

Published by RunTimeFix · Comprehensive guides for competitive programming

>RunTimeFix

Practical programming education. Books, videos, courses, and hands-on learning for competitive programming, DSA, and software engineering.

RunTimeFix

  • About
  • YouTube
  • Book
  • Study Library
  • Courses

Learn

  • Competitive Programming
  • DSA
  • Development
  • Databases

Legal

  • Privacy
  • Terms
  • Refund Policy

RunTimeFix — debug → solve → run

© 2026 RunTimeFix. All rights reserved.