Skip to content

Instantly share code, notes, and snippets.

@gauravghongde
gauravghongde / portfolioWebsite.gif
Last active March 19, 2021 18:06
portfolioV2 Preview
portfolioWebsite.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gauravghongde
gauravghongde / 06.png
Created January 10, 2021 06:46 — forked from mfd/06.png
Gilroy font
06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gauravghongde
gauravghongde / palindrome.py
Created March 15, 2020 18:42
Check if palindrome
from time import perf_counter
string_to_check = "Go hang a salami --- --- I'm a lasagna hog."
#myCode -
def is_palindrome1(p_str):
new_str = ""
for char in p_str:
if char.isalpha():
new_str += char.lower()
@gauravghongde
gauravghongde / prime_factors.py
Created March 15, 2020 17:57
Prime factors of a number
from math import sqrt
from time import perf_counter
lst = []
#myCode -
def getPF1(n):
if n <= 1:
return
elif n == 2 :
//matrix size -> n*m
int findMine(i, j){
if(i < 0 || i > n){
return -1;
}
if(j == (m-1)){
return arr[i][j];
}
if(mem[i][j] == -1){