Skip to content

Instantly share code, notes, and snippets.

View bksinha4497's full-sized avatar

Biswajit Kumar bksinha4497

  • Bangalore, Karnataka, India
View GitHub Profile
@bksinha4497
bksinha4497 / Backtracking.java
Created August 7, 2021 04:22
Java Templates
public T<> solve() {
T<> currentObject = new T<>();
T<> solution = new T<>();
search(currentObject,solution, n);
return solution;
}
//To check if we have a valid solution
boolean isValidSolution(T<> currentObject) {
return True;
@bksinha4497
bksinha4497 / psql_useful_stat_queries.sql
Created August 3, 2020 04:44 — forked from anvk/psql_useful_stat_queries.sql
List of some useful Stat Queries for PSQL
--- PSQL queries which also duplicated from https://github.com/anvk/AwesomePSQLList/blob/master/README.md
--- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192
-- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB.
------------
-- Basics --
------------
-- Get indexes of tables
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
<option name="PROJECT_TEST_RUNNER" value="Unittests" />
</component>