My solutions to various programming problems
Find a file
2022-11-26 11:27:25 +05:00
problems Problem 14: longest common prefix 2022-11-26 11:27:25 +05:00
.gitignore Problem 8: string to integer 2022-11-25 23:06:02 +05:00
license.txt Create license.txt 2022-11-17 17:16:30 +05:00
readme.md Problem 1108: defanging an ip address 2022-11-25 23:43:40 +05:00

Leetcode

How to run solutions

For programs written in C:

cd problems/random-problem
make
make run

For programs written in Rust:

cd problems/random-problem
cargo test

For programs written in Ruby:

cd problems/random-problem
ruby test.rb

Solution structure

For programs written in C:

  • lib.c - the solution itself
  • main.c - tests

For programs written in Rust:

  • src/lib.rs - solution and tests

For programs written in Ruby:

  • main.rb - the solution itself
  • test.rb - tests