Skip to content

Instantly share code, notes, and snippets.

View sreramk's full-sized avatar
💭
Looking for a job!

Sreram K sreramk

💭
Looking for a job!
View GitHub Profile
@sreramk
sreramk / keycloak_db_overview_4.0.0.CR1-SNAPSHOT.svg
Created October 15, 2020 12:58 — forked from thomasdarimont/keycloak_db_overview_4.0.0.CR1-SNAPSHOT.svg
Keycloak Database Overview 4.0.0.CR1-SNAPSHOT (06bb6f00e5)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/// This is a new kind of solution to that problem.
struct Range {
int buy;
int sell;
int maxPrice;
Range() : buy (0), sell (0), maxPrice(0) {}
};
#include <bits/stdc++.h>
struct Result {
int minTrips;
std::map<std::vector<bool>, std::vector <int>>* sequence;
std::vector <int> optimalVec;
Result() : minTrips(0),
sequence(new std::map<std::vector<bool>, std::vector <int>>) {}
~Result () {
#include <iostream>
#include <vector>
void set_matrix (std::vector<std::vector<int>>& mat, int lenght ) {
mat.resize(lenght);
for (int i = 0; i < lenght; i++) {
mat[i].resize(lenght);
}
}
/* Solution by K Sreram.
* Original question: https://www.hackerrank.com/challenges/array-pairs/submissions/code/71255248
* tested with C++14 (g++)
*/
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
@sreramk
sreramk / containsTheTrainingAlgorithm.java
Created December 16, 2016 05:35
contains The Training Algorithm
package neuralNetwork;
/*
* Copyright (c) 2016 K Sreram, All rights reserved.
*/
import java.util.ArrayList;
import neuralNetwork.neuralInterface.TrainingDataSet;
/**
/*
* copyright (c) 2016 K Sreram, All rights reserved
*/
package mainFnc;
import neuralNetwork.activationFunctions.*;
import neuralNetwork.graphicalAnalysis.ErrorGraph;
import neuralNetwork.ioHandler.WeightIOHandler;
import neuralNetwork.neuralInterface.NeuralNetworkInterface;
/**
program author: K Sreram
Author E-mail: sreramk@outlook.com
License: GNU public license
*/
#include <limits>
#include <stdlib.h>
#include "bellman.h"
#include <iostream>
BellmanAlgorithm::BellmanAlgorithm()
/**
program author: K Sreram
Author E-mail: sreramk@outlook.com
License: GNU public license
*/
#ifndef BELLMAN_H
#define BELLMAN_H
#include <queue>
#include <list>
/**
program author: K Sreram
Author E-mail: sreramk@outlook.com
License: GNU public license
*/
#include "bellman.h"
#include <iostream>
#include <stdlib.h>
int main()
{