Skip to content

Instantly share code, notes, and snippets.

View kshubham506's full-sized avatar

Shubham Kumar kshubham506

View GitHub Profile
@kshubham506
kshubham506 / hello_world.rb
Created April 8, 2020 19:25
Hello World Examples
mod =998244353
Matrix_distribution=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]]
def power(a,b):
res = 1
while b >0:
if b&1:
res = (res * a)%mod
a=(a*a)%mod
b>>=1
@kshubham506
kshubham506 / hello_world.rb
Created April 8, 2020 19:20
Hello World Examples
class HelloWorld
def initialize(name)
@name = name.capitalize
end
def sayHi
puts "Hello !"
end
end
hello = HelloWorld.new("World")