Skip to content

Instantly share code, notes, and snippets.

@fddemora
fddemora / BubbleSort.cpp
Last active July 16, 2021 02:55
C++ bubble sort
#include<iostream>
#include<vector>
using namespace std;
void SortVector(vector<int>& myVec);
int main(){
int size, input;
cin >> size; // get size from user.
vector<int> x(size);
@fddemora
fddemora / SelectionSort.cpp
Last active July 16, 2021 02:52
cpp selection sort algorithm
/*
Imagine a struct like:
struct Bid {
string title;
string fund;
double amount;
}
Then taking a csv, reading the data into the bid, and then adding it to a vector.
#include<iostream>
#include <string>
#include <unordered_map>
class Solution {
public:
int romanToInt(std::string s) {
int sum = 0;
int length = s.length();
@fddemora
fddemora / boilerplate.html
Created January 31, 2024 00:53
taken from emailonacid
<!DOCTYPE html>
<!-- We use the HTML5 doctype as it's the most widely supported and our recommended doctype, for more on this visit https://www.emailonacid.com/blog/article/email-development/doctype_-_the_black_sheep_of_html_email_design/
In our HTML tag we include a language for accessibility purposes and VML namespace declaration, for if we need to add specific Outlook VML code.-->
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<!-- This Outlook specific code helps alleviate the issues caused by high DPI versions of Outlook. -->
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG />