Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
406c64f
Create readme.md
Sakalya100 Mar 15, 2021
f96da41
Add files via upload
Sakalya100 Mar 15, 2021
5e256e3
Create Inheritance.cpp
Sakalya100 Mar 15, 2021
e91dfc8
hello World in KOTLIN
Sakalya100 Mar 15, 2021
a416e54
Add files via upload
Sakalya100 Mar 15, 2021
d886567
Delete binary_search.cpp
Sakalya100 Mar 15, 2021
0749dd4
Create Day2-Problem1.cpp
Sakalya100 Mar 16, 2021
451aeb6
Create Day2-problem2.cpp
Sakalya100 Mar 16, 2021
bbad2f5
Create Day2-Problem3
Sakalya100 Mar 16, 2021
ef93a93
Create program1.cpp
Sakalya100 Mar 16, 2021
e19160d
Delete Sakalya directory
Sakalya100 Mar 16, 2021
fb84e51
Create Tic_Tac_Toe.py
Sakalya100 Mar 16, 2021
9a0fd04
Create Day3-Problem1.py
Sakalya100 Mar 16, 2021
3b57d01
Create Day3-Problem2.py
Sakalya100 Mar 16, 2021
d956a73
Create Day3-Problem3.py
Sakalya100 Mar 16, 2021
d3beeef
Added array.cpp
Sakalya100 Mar 17, 2021
39aaddc
Add files via upload
Sakalya100 Mar 17, 2021
ce62f46
Add files via upload
Sakalya100 Mar 17, 2021
eae7daf
Create Day4-Problem1.py
Sakalya100 Mar 17, 2021
c1c09b6
Create Day4-Problem2.py
Sakalya100 Mar 17, 2021
40af371
Create Day4-Problem3.py
Sakalya100 Mar 17, 2021
7004b8f
Create Day4-Problem4.py
Sakalya100 Mar 17, 2021
3a6f270
Create Day4-Problem5.py
Sakalya100 Mar 17, 2021
c411d35
Create app.js
Sakalya100 Mar 18, 2021
17cb6e1
Add files via upload
Sakalya100 Mar 18, 2021
d6fd555
Create readme.md
Sakalya100 Mar 18, 2021
2101d3e
Add files via upload
Sakalya100 Mar 18, 2021
1725313
Add files via upload
Sakalya100 Mar 18, 2021
04723ea
Create First.py
Sakalya100 Mar 18, 2021
e80984e
API and AI
Sakalya100 Mar 18, 2021
5f64d60
Add files via upload
Sakalya100 Mar 18, 2021
1f7e443
Create index.html
Sakalya100 Mar 18, 2021
f3236b1
Add files via upload
Sakalya100 Mar 18, 2021
3e9b359
Add files via upload
Sakalya100 Mar 19, 2021
37c2025
Add files via upload
Sakalya100 Mar 19, 2021
befacd8
Create DSA1-Codechef.cpp
Sakalya100 Mar 19, 2021
38232c0
Create DSA2-Codechef.cpp
Sakalya100 Mar 19, 2021
fee7845
Create DSA3-Codechef.cpp
Sakalya100 Mar 19, 2021
8f620ce
Create DSA4-Codechef.cpp
Sakalya100 Mar 19, 2021
0a31cb2
Create DSA5-Codechef.cpp
Sakalya100 Mar 19, 2021
270a2c8
Create DSA6-Codechef.cpp
Sakalya100 Mar 19, 2021
2678d24
Add files via upload
Sakalya100 Mar 20, 2021
4546007
Web Code
Sakalya100 Mar 20, 2021
1c183da
Rename readme.md to readme1.md
Sakalya100 Mar 20, 2021
ddbb047
Punctuation Updated
Sakalya100 Mar 20, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Floyds_pattern.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#include<iostream>
using namespace std;


int main(){

int n,num=1;
cin>>n;




for (int i=1;i<=n;i++){
for(int j=1;j<=i;j++){
cout<<num;
num=num+1;
}
cout<<endl;

}

return 0;

}
3 changes: 3 additions & 0 deletions Hello_world.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fun main() {
println("hello world")
}
37 changes: 37 additions & 0 deletions Inheritance.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#include <iostream>

using namespace std;

class Mammals {
public:
void fn1() {
cout << "I am mammal" << endl;
}
};

class MarineAnimals {
public:
void fn2() {
cout << "I am a marine animal" << endl;
}
};

class BlueWhale : public Mammals, public MarineAnimals {
public:
void fn3() {
cout << "I belong to both the categories: Mammals as well as Marine Animals" << endl;
}
};

int main()
{
Mammals mm;
MarineAnimals ma;
BlueWhale bw;
mm.fn1(); /* func of Mammals by obj of Mammals */
ma.fn2(); /* func of MarineAnimals by obj of MarineAnimals */
bw.fn3(); /* func of BlueWhale by obj of BlueWhale */
bw.fn1(); /* func of Mammals by obj of BlueWhale */
bw.fn2(); /* func of MarineAnimals by obj of BlueWhale */
return 0;
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Geek Week: Local will run from 14/03/21 to 21/03/21.
During this time, you can expect challenges for all skill levels. These challenges can be completed on your own time, and new ones will be released each day on our website! Once the daily challenges are announced, you’ll have 24 hours to complete and submit them in order to
earn those points on the leader-board.

If the daily challenges aren’t quite your speed, there will also be plenty of week-long challenges you can complete at any time. These will range from quick technical challenges to tasks you can complete with your guild-mates (guild=team), both beginner-friendly and technically advanced so there is something for everyone.
If the daily challenges aren’t quite your speed, there will also be plenty of week-long challenges you can complete at any time. These will range from quick technical challenges to tasks you can complete with your guild-mates (guild=team), both beginner-friendly and technically advanced , so there is something for everyone.

![](assets/banner2(1).png)

Expand Down
11 changes: 11 additions & 0 deletions Sakalya100-Day4/Day4-Problem1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class Solution:
def longestPalindrome(self, s: str) -> str:
m = '' # Memory to remember a palindrome
for i in range(len(s)): # i = start, O = n
for j in range(len(s), i, -1): # j = end, O = n^2
if len(m) >= j-i: # To reduce time
break
elif s[i:j] == s[i:j][::-1]:
m = s[i:j]
break
return m
19 changes: 19 additions & 0 deletions Sakalya100-Day4/Day4-Problem2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode:
result = ListNode(0)
result_tail = result
carry = 0

while l1 or l2 or carry:
val1 = (l1.val if l1 else 0)
val2 = (l2.val if l2 else 0)
carry, out = divmod(val1+val2 + carry, 10)

result_tail.next = ListNode(out)
result_tail = result_tail.next

l1 = (l1.next if l1 else None)
l2 = (l2.next if l2 else None)

return result.next

15 changes: 15 additions & 0 deletions Sakalya100-Day4/Day4-Problem3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
class Solution:
def convert(self, s: str, numRows: int) -> str:
if numRows == 1:
return s
n = len(s)
cycle = 2*numRows - 2
strlist = []
for i in range(numRows):
for j in range(i, n, cycle):
strlist.append(s[j])
if i != numRows-1 and i != 0 and j+cycle-2*i < n:
strlist.append(s[j+cycle-2*i])
newstr = ''.join(strlist)
return newstr

30 changes: 30 additions & 0 deletions Sakalya100-Day4/Day4-Problem4.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
class Solution:
def letterCombinations(self, digits: str) -> List[str]:
# If the input is empty, immediately return an empty answer array
if len(digits) == 0:
return []

# Map all the digits to their corresponding letters
letters = {"2": "abc", "3": "def", "4": "ghi", "5": "jkl",
"6": "mno", "7": "pqrs", "8": "tuv", "9": "wxyz"}

def backtrack(index, path):
# If the path is the same length as digits, we have a complete combination
if len(path) == len(digits):
combinations.append("".join(path))
return # Backtrack

# Get the letters that the current digit maps to, and loop through them
possible_letters = letters[digits[index]]
for letter in possible_letters:
# Add the letter to our current path
path.append(letter)
# Move on to the next digit
backtrack(index + 1, path)
# Backtrack by removing the letter before moving onto the next
path.pop()

# Initiate backtracking with an empty path and starting index of 0
combinations = []
backtrack(0, [])
return combinations
7 changes: 7 additions & 0 deletions Sakalya100-Day4/Day4-Problem5.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class Solution:
def groupAnagrams(self, strs: List[str]) -> List[List[str]]:
ans = collections.defaultdict(list)
for s in strs:
ans[tuple(sorted(s))].append(s)
return ans.values()

Binary file added Sakalya100-Day4/Redesigned-Website/GWL.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Sakalya100-Day4/Redesigned-Website/avatar1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Sakalya100-Day4/Redesigned-Website/avatar2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Sakalya100-Day4/Redesigned-Website/avatar3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Sakalya100-Day4/Redesigned-Website/avatar4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Sakalya100-Day4/Redesigned-Website/avatar5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Sakalya100-Day4/Redesigned-Website/bill.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Sakalya100-Day4/Redesigned-Website/codersbite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Sakalya100-Day4/Redesigned-Website/covid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Sakalya100-Day4/Redesigned-Website/dp.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Sakalya100-Day4/Redesigned-Website/elon.jpg
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.
Binary file added Sakalya100-Day4/Redesigned-Website/emoji_like.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.
Binary file added Sakalya100-Day4/Redesigned-Website/events.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Sakalya100-Day4/Redesigned-Website/facebook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Sakalya100-Day4/Redesigned-Website/friends.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Sakalya100-Day4/Redesigned-Website/gfg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Sakalya100-Day4/Redesigned-Website/gift-box.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Sakalya100-Day4/Redesigned-Website/groups.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Sakalya100-Day4/Redesigned-Website/hilary.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading