Skip to content

Instantly share code, notes, and snippets.

View BhaveshSGupta's full-sized avatar
💼
Looking for Work

Bhavesh Gupta BhaveshSGupta

💼
Looking for Work
View GitHub Profile
@BhaveshSGupta
BhaveshSGupta / grokking_to_leetcode.md
Created April 26, 2022 02:44 — forked from tykurtz/grokking_to_leetcode.md
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

1. WAP to take input from user, m and n, character and print a matrix of mxn characters.
2. WAP to print the following pattern. The height of triangle to be given by the user.
*
***
*****
*******
*********
2.1 WAP to print the following pattern
*
* *
var ticket = [{
name: 'tick585',
numbers: [
[5, 0, 20, 0, 45, 0, 60, 76, 0],
[0, 14, 26, 0, 49, 0, 64, 0, 88],
[0, 17, 0, 35, 0, 56, 0, 79, 90]
]
},
{
name: 'tick578',
@BhaveshSGupta
BhaveshSGupta / select all mail js
Created September 24, 2018 04:17
Gmail HTMl view select all mail
checkboxes = document.getElementsByName('t');
for(var i=0, n=checkboxes.length;i<n;i++) {
checkboxes[i].checked = true;
}

Keybase proof

I hereby claim:

  • I am bhaveshsgupta on github.
  • I am bhaveshsgupta (https://keybase.io/bhaveshsgupta) on keybase.
  • I have a public key ASCIIfq6NafP03I59ytAw3gEF9QoVj8ZgozLlOMbtanezgo

To claim this, I am signing this object:

@BhaveshSGupta
BhaveshSGupta / libfromconsole.js
Created February 19, 2017 08:41
Adding any lib from console
var cdn = "https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.4/lodash.min.js";
var script = document.createElement('script');
script.src = cdn;
document.getElementsByTagName('head')[0].appendChild(script); // Now Test the library methods // yes we have lodash loaded in the console
var array = [1, 2, 3];
_.reverse(array); // Ouput: [3, 2, 1]
@BhaveshSGupta
BhaveshSGupta / dotnet frame work.md
Last active August 29, 2015 14:15
Install Dotnet Frame work Offline
Install dotnet framework 2 and 3.5
for intallation you dont need any software just the iso of file of the OS
that is if you are intalling it on 8 the win8 iso or in win 8.1 then 8.1 iso

you need to do following things
step 1: Login to administrator account
step 2: Open CMD with admin privileges
step 3: copy this and paste the following line in cmd and press enter
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:*:\sources\sxs