{{ message }}

Instantly share code, notes, and snippets.

🎯
Focusing

# Gopesh Neptune998

🎯
Focusing
Created Aug 13, 2020
Insertion Sort Algorithm2
View insertion_algo2.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 # Insertion Sort Algorithm2 i ← 1 while i < length(A) x ← A[i] j ← i - 1 while j >= 0 and A[j] > x A[j+1] ← A[j] j ← j - 1 end while A[j+1] ← x
Last active Aug 13, 2020
Insertion Sort
View insertion_sort.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 # Insertion sort def Insertion_sort(arr, itr): lgth = len(arr) for i in range(1,lgth): x,j = arr[i],i-1 while j>=0 and arr[j]>x: arr[j+1] = arr[j] j-=1 arr[j+1] = x print("Iteration:",i,arr)
Last active Aug 13, 2020
Insertion Recursive Algorithm
View insertion_recursive_algo.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 # Insertion Recursive Algorithm function insertionSortR(array A, int n) if n > 0 insertionSortR(A, n-1) x ← A[n] j ← n-1 while j >= 0 and A[j] > x A[j+1] ← A[j] j ← j-1 end while
Last active Aug 14, 2020
View sample_class.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 class Website: def __init__(self, name, url): self.name = name self.url = url def print_url(self): print("Name of Website " + self.name + "and URL "+ self.url) web1 = Website("NeptuneWorld", "https://neptuneworld.in/") web1.print_url()
Created Aug 15, 2020
View cmd_line_input.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Created Aug 18, 2020
Program to output 0 or 1
View program.slq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 def main(){ x:=H(false); return measure(x); }
Last active Aug 18, 2020
How to write a function in silq
View function_Silq.slq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 def main() { x:=H(false); return measure(x); }
Created Aug 29, 2020
Here we can scrape data using requests module in Python.
View scrape_data_using_python.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters