Skip to content

MatthewMcGonagle/ProgrammingExercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Programming Exercises

The purpose of this project is to be a collection of solutions to programming exercises. The solutions are split into directories based on language:

In particular, there are many C++ solutions to problems from Leet Code in the directory /cpp/.

The solutions are self-contained. They will compile to create executables for testing; this is despite the fact that Leet Code only requires one to implement individual class member functions.

Blog Entries

Some of the solutions to the exercises are discussed on my blog; here is a list of the solutions that are discussed as blog entries:

C++ Solutions

The solutions to exercises that are programmed in C++ are in the cpp/ directory. Here is a list of the exercises that may be found there:

  • Leet Code 002 Add Two Numbers
  • Leet Code 004 Sum 2
  • Leet Code 005 Median Two Sorted Arrays
  • Leet Code 042 Trap Rain Water
  • Leet Code 098 Validate Binary
  • Leet Code 126 Word Ladder 2
  • Leet Code 133 Clone Graph
  • Leet Code 138 List Random Pointer
  • Leet Code 149 Max Points on a Line
  • Leet Code 169 Majority Element
  • Leet Code 174 Dungeon Game
  • Leet Code 208 Implement Trie
  • Leet Code 215 Kth Largest Element
  • Leet Code 221 Maximal Square
  • Leet Code 235 Lowest Common Ancestor
  • Leet Code 283 Move Zeroes
  • Leet Code 297 Serialize Deserialize Tree
  • Leet Code 378 Kth In Sorted Matrix
  • Leet Code 605 Place Flowers
  • Leet Code 654 Max Binary Tree
  • Leet Code Work Ladder

MySQL Solutions

  • Leet Code 181 Employees Earning More Than Their Managers
  • Leet Code 182 Duplicate Emails
  • Leet Code 197 Rising Temperature
  • Leet Code 595 Big Countries
  • Leet Code 620 Not Boring Movies
  • Leet Code 626 Exchange Seats
  • Leet Code 627 Swap Salary

Haskell Solutions

The solutions to the exercises that are programmed in Haskell are in the haskell/ directory. Here is a list of the exercises that may be found there:

  • Reddit Daily Programmer 297 Parentheses Trees

About

Collection of Small Programming Exercises

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published