View primes.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <chrono> | |
#include <iostream> | |
#include <numeric> | |
#include <ranges> | |
#include <vector> | |
const int N = 10000000; | |
int main() { | |
auto t1 = std::chrono::steady_clock::now(); |
View towers.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/****************************************************************************** | |
* File: towers.cpp | |
* | |
* Author: Raziman T V | |
* Created: 04/09/20 | |
* Description: Solving the Towers puzzle | |
*****************************************************************************/ | |
#include <algorithm> | |
#include <cassert> |
View Randomstrip.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View IqbalPuzzle.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View population_evolution.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <fstream> | |
#include <iostream> | |
#include <random> | |
#include <set> | |
#include <string> | |
#include <tuple> | |
// Birth/death events | |
// If birth: time, +1, 0 | |
// If death: time, -1, birthday |
View Pi_MC.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View ImpossiblePuzzle.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View battleship.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <map> | |
#include <random> | |
#include <tuple> | |
#include <vector> | |
std::random_device rd; | |
std::mt19937 gen(rd()); | |
typedef std::vector<std::string> pattern; |
View stackify.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View covfefe.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder