Skip to content

Instantly share code, notes, and snippets.

View shadow-prince's full-sized avatar
:octocat:
WATCHING ANIME

Sai Kishore shadow-prince

:octocat:
WATCHING ANIME
  • Future
View GitHub Profile
@shadow-prince
shadow-prince / TimSort.py
Created July 26, 2021 02:59
Timsort Algorithm
import random
def InsertionSort(array):
for x in range (1, len(array)):
for i in range(x, 0, -1):
if array[i] < array[i - 1]:
t = array[i]
array[i] = array[i - 1]
array[i - 1] = t
@shadow-prince
shadow-prince / Dictionaries_and_Maps.java
Created July 25, 2021 07:45
Day 8 Of 30 Days of Code - HackerRank - Python & Java
/*
Given names and phone numbers, assemble a phone book that maps friends' names to their
respective phone numbers. You will then be given an unknown number of names to query your
phone book for. For each queried, print the associated entry from your phone book on a
new line in the form name=phoneNumber; if an entry for is not found, print Not found instead.
Java
*/
import java.util.*;
import java.io.*;
@shadow-prince
shadow-prince / BasicPhone.ts
Last active April 9, 2021 17:30
Refer these for inheritance and more...🎈
import { Mobile } from "./Mobile";
export class BasicPhone extends Mobile{
mobileType:string;
constructor(mobileName:string,mobileCost:number,mobileId: number,mobileType:string){
super(mobileId, mobileName, mobileCost);
this.mobileType=mobileType;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shadow-prince
shadow-prince / monut_drive.ipynb
Created May 22, 2020 03:38
monut_drive.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shadow-prince
shadow-prince / torrent_to_google_drive_downloader.ipynb
Created May 22, 2020 03:31
Torrent_To_Google_Drive_Downloader.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.