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 Node: | |
def __init__(self, data=None, next=None): | |
self.data = data | |
self.next = next | |
class LinkedList: | |
def __init__(self): | |
self.head = None | |
def get_length(self): |
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
<div class="snap-x overflow-x-auto whitespace-nowrap"> | |
<div class="inline-block snap-center p-4"> | |
<img src="https://images.unsplash.com/photo-1604999565976-8913ad2ddb7c?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=320&h=160&q=80" /> | |
</div> | |
<div class="inline-block snap-center p-4"> | |
<img src="https://images.unsplash.com/photo-1540206351-d6465b3ac5c1?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=320&h=160&q=80" /> | |
</div> | |
<div class="inline-block snap-center p-4"> | |
<img src="https://images.unsplash.com/photo-1622890806166-111d7f6c7c97?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=320&h=160&q=80" /> | |
</div> |
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
REMIX DEFAULT WORKSPACE | |
Remix default workspace is present when: | |
i. Remix loads for the very first time | |
ii. A new workspace is created | |
iii. There are no files existing in the File Explorer | |
This workspace contains 3 directories: | |
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name. |
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
import numpy as np | |
from math import pi,exp,cos | |
from scipy.integrate import odeint | |
import matplotlib.pyplot as plt | |
#defining the ode function dhdt | |
def dhdt(h,t): | |
h1 = h[0]; h2 = h[1]; h3 = h[2] | |
h1p = 2*h1 + h2 + 5*h3 + exp(-2*t) #h1' | |
h2p = -3*h1 -2*h2 -8*h3 + 2*exp(-2*t) - cos(3*t) #h2' |
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
import numpy as np | |
import random | |
import matplotlib.pyplot as plt | |
def randomWalk(L): | |
# S is a 2d array where x = row1= S[0][:], y = row2 = S[1][:] | |
S = np.zeros(shape=(2,L+1)) | |
directions = [1,2,3,4] |
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
************************************************** | |
using System; | |
namespace project05 | |
{ | |
public class precip | |
{ | |
private string precipDate; | |
private string precipType; |
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 neighboursRime(words): | |
pairs=0 # pairs found | |
done=[] # list of words that are checked | |
counter=0 # index of the list | |
contiguous="" # contuguous words | |
# iterate the list | |
for word in words: | |
if not word in done: | |
# get the length of string |