/go-training

Leetcode submissions and others samples in Golang

Primary LanguageGo

Go Training

Leetcode submissions

All Leetcode submissions have their own folder in the repo. You can find them by their frontendID and questionSlug propeties.

Submission List


Others Samples

Sastantua

The goal of this program is to build the Sastantua pyramid using a given size as argument. Several sizes can be given in the same command line.

go run ./sastantua 1 3

Output

Size 1
  /*\
 /***\
/**|**\



Size 3
               /*\
              /***\
             /*****\
          /***********\
         /*************\
        /***************\
       /*****************\
    /***********************\
   /*************************\
  /************|||************\
 /*************|$|*************\
/**************|||**************\