Skip to content

Instantly share code, notes, and snippets.

@akshayas
akshayas / noOfBinaryTrees
Created July 12, 2012 06:02
Number of binary trees possible with n nodes
/**
* Write code to compute number of structural different
* binary trees for given 'n' number of nodes.
* (with and without Catalan number)
*/
package problems;
public class noOfBinaryTrees {
public static int noOfTrees(int totalNodes) {
@akshayas
akshayas / keybase.md
Created October 2, 2016 19:59
keybase.md

Keybase proof

I hereby claim:

  • I am akshayas on github.
  • I am akshayas (https://keybase.io/akshayas) on keybase.
  • I have a public key ASBkmU4D2udh6cEUv5WzPwImytoNgryEw5kL-DxGjpIE1Ao

To claim this, I am signing this object:

@akshayas
akshayas / script.html
Created September 30, 2017 18:56
BigCommerce Bolt Stencil Integration
<!-- BOLT INTEGRATION: BEGIN -->
<script src="//d2wy8f7a9ursnm.cloudfront.net/bugsnag-3.min.js"></script>
<script id="bolt_main_script">
var BOLT_MERCHANT_KEY = '<insert merchant key>';
(function() {
var oldOpen = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function(method, url) {
this.addEventListener('load', function(event){
if (/checkout\/payments/.test(url)) {
setTimeout(replacePayment);