Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
37689b7
Create C_HariVignesh18_Cricmeter.c
HariVignesh18 Dec 1, 2023
f7aadd6
Merge branch 'SVCE-ACM:master' into master
HariVignesh18 Dec 2, 2023
2bd410d
Python_HariVignesh18_Shopper's Choice.py
HariVignesh18 Dec 2, 2023
0d59bfb
C_HariVignesh18_Cricmetrics.c
HariVignesh18 Dec 2, 2023
02d1da1
python3_HariVignesh18_Shopper's Choice.py
HariVignesh18 Dec 2, 2023
9968851
Merge branch 'SVCE-ACM:master' into master
HariVignesh18 Dec 3, 2023
22b5ae4
Create C_HariVignesh18_Sunburnt.c
HariVignesh18 Dec 3, 2023
b1880ec
C_HariVignesh18_Sunburnt.c
HariVignesh18 Dec 3, 2023
e60cf5f
Merge branch 'SVCE-ACM:master' into master
HariVignesh18 Dec 4, 2023
936454e
Create python3_HariVignesh18_Mirror Magic.py
HariVignesh18 Dec 4, 2023
67947f8
Merge branch 'SVCE-ACM:master' into master
HariVignesh18 Dec 5, 2023
dd774f5
Create python3_HariVignesh18_PeakyBlinders.py
HariVignesh18 Dec 5, 2023
d82716a
Merge branch 'SVCE-ACM:master' into master
HariVignesh18 Dec 6, 2023
3e1b72e
Create python3_HariVignesh18_TheLostAlgorithmScrolls.py
HariVignesh18 Dec 6, 2023
58d8fa5
Merge branch 'SVCE-ACM:master' into master
HariVignesh18 Dec 7, 2023
49af224
Create python3_HariVignesh18_BabyBlocks.py
HariVignesh18 Dec 7, 2023
c7092bd
Merge branch 'SVCE-ACM:master' into master
HariVignesh18 Dec 8, 2023
0d28224
Create python3_HariVignesh18_TheEnchantedForest.py
HariVignesh18 Dec 8, 2023
7f60960
Merge branch 'SVCE-ACM:master' into master
HariVignesh18 Dec 9, 2023
3af8c81
Create python3_HariVignesh18_Camels_In_A_String.py
HariVignesh18 Dec 9, 2023
3675e19
Merge branch 'SVCE-ACM:master' into master
HariVignesh18 Dec 11, 2023
b8541a6
Create python3_HariVignesh18_coderOfConversions.py
HariVignesh18 Dec 11, 2023
0bf12da
Create python3_HariVignesh18_forgotPassword.py
HariVignesh18 Dec 12, 2023
95e9847
Merge branch 'SVCE-ACM:master' into master
HariVignesh18 Dec 12, 2023
ce259b1
Create python3_HariVignesh18_theHeist.py
HariVignesh18 Dec 12, 2023
4605aa7
Merge branch 'SVCE-ACM:master' into master
HariVignesh18 Dec 13, 2023
51d4d51
Create python3_HariVignesh18_CallCipher.py
HariVignesh18 Dec 13, 2023
a9eb252
Merge branch 'SVCE-ACM:master' into master
HariVignesh18 Dec 15, 2023
78bda77
Create python3_HariVignesh18_SubsequenceSorcery.py
HariVignesh18 Dec 15, 2023
51929c2
Delete December 02 directory
HariVignesh18 Dec 15, 2023
ab08782
Create c++_HariVignesh18_CallOfJustice.cpp
HariVignesh18 Dec 18, 2023
79a6d64
Merge branch 'SVCE-ACM:master' into master
HariVignesh18 Dec 18, 2023
c90c79d
Create c++_HariVignesh18_BookshelfDilemma.cpp
HariVignesh18 Dec 18, 2023
2a59bda
Merge branch 'SVCE-ACM:master' into master
HariVignesh18 Dec 22, 2023
fc8ee10
Create python3_HariVignesh18_OutbreaksDynamics.py
HariVignesh18 Dec 29, 2023
5a10d6a
Delete python3_HariVignesh18_OutbreaksDynamics.py
HariVignesh18 Dec 29, 2023
d2db1db
Create python3_HariVignesh18_OutbreakDynamics.py
HariVignesh18 Dec 29, 2023
6ba48ba
Merge branch 'SVCE-ACM:master' into master
HariVignesh18 Dec 29, 2023
1d48d64
Create python3_HariVignesh18_RottenOranges.py
HariVignesh18 Dec 29, 2023
0f2db74
Create python3_HariVignesh18_Dominoes.py
HariVignesh18 Dec 29, 2023
af4d6f8
Create python3_HariVignesh18_HarmonyHurdle.py
HariVignesh18 Dec 29, 2023
bf47481
Create python3_HarVignesh_CircleOfEndurance.py
HariVignesh18 Dec 29, 2023
8cc5c31
Create python3_HariVignesh8_TheSellingGame.py
HariVignesh18 Dec 29, 2023
b306ab2
Create C++_HariVignesh18_PhantomCycle.cpp
HariVignesh18 Dec 29, 2023
a080de1
Create python3_HariVignesh18_RiddleMeThis.py
HariVignesh18 Dec 29, 2023
6fd9ddc
Create python3_HariVignesh18_GoldenRuleViolation
HariVignesh18 Dec 29, 2023
fad41c1
Create python3_HariVignesh18_CartesianWalkValidator.py
HariVignesh18 Dec 29, 2023
d8a7b1f
Update C++_HariVignesh18_PhantomCycle.cpp
HariVignesh18 Dec 29, 2023
35be1ac
Update C++_HariVignesh18_PhantomCycle.cpp
HariVignesh18 Dec 29, 2023
d62b4bd
Update C++_HariVignesh18_PhantomCycle.cpp
HariVignesh18 Dec 29, 2023
ea5b563
Create C++_HariVignesh18_SymbolicSum.cpp
HariVignesh18 Dec 29, 2023
1713f19
Create python3_HariVignesh_TreasureHuntInTheIsles,py
HariVignesh18 Dec 29, 2023
6052427
Delete C++_HariVignesh18_SymbolicSum.cpp
HariVignesh18 Dec 29, 2023
67e2e08
Create C++_HariVignesh18_SymbolicSum.cpp
HariVignesh18 Dec 29, 2023
28db15b
Create python3_HariVignesh18_ It'sChristmasSeason,py
HariVignesh18 Dec 29, 2023
1839184
Merge branch 'SVCE-ACM:master' into master
HariVignesh18 Jan 7, 2024
484f3dc
Create python3_HariVignesh18_TreeInversions.py
HariVignesh18 Jan 7, 2024
df3f3f2
Create python3_HariVignesh18_NQueens.py
HariVignesh18 Jan 7, 2024
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
20 changes: 20 additions & 0 deletions December 01/C_HariVignesh18_Cricmetrics.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include<stdio.h>
int main(){
int n,s,a[100];
int max;
int i;
scanf("%d",&n);
for(i = 0;i < n;i++){
scanf("%d",&a[i]);
s = s + a[i];
}
max = a[0];
int ind = 0;
for(i = 1;i<n;i++){
if(a[i]>max){
max = a[i];
ind = i;
}
}
printf("%d\n%d",s,ind);
}
13 changes: 13 additions & 0 deletions December 02 /python3_HariVignesh18_Shopper's Choice.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
a = list(map(int,input().split()))
b = []
for i in a:
if i not in b:
b.append(i)
c = []
for i in b:
count = 0
for j in a:
if i == j:
count += 1
c.append(count)
print(c)
231 changes: 0 additions & 231 deletions December 02/.gitignore

This file was deleted.

23 changes: 23 additions & 0 deletions December 03/C_HariVignesh18_Sunburnt.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#include <stdio.h>
int main()
{
int n,a[100];
scanf("%d",&n);
for(int i = 0;i < n; i++){
scanf("%d",&a[i]);
}
int b = 0;
for(int i = 0;i < n; i++){
int s = 0;
for(int j = 0;j < i;j++){
if(a[j]>=a[i]){
s = 1;
break;
}
}
if(s == 0){
b+=1;
}
}
printf("%d",b);
}
12 changes: 12 additions & 0 deletions December 04/python3_HariVignesh18_Mirror Magic.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
a = input()
b = ""
for i in range(0,len(a)-1):
for j in range(i+2,len(a)+1):
sub = a[i:j]
if sub == sub[::-1]:
if len(b)!= "" or len(b) > len(sub):
b = sub
if b!="":
print(b)
else:
print("Error")
12 changes: 12 additions & 0 deletions December 05/python3_HariVignesh18_PeakyBlinders.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
a = [int(i) for i in input().split()]
c = 0
s = 0
for i in a:
s += i
c += 1
b = s/c
s = 0
for i in a:
if i >= b:
s += i
print(s)
18 changes: 18 additions & 0 deletions December 06/python3_HariVignesh18_TheLostAlgorithmScrolls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
s = input().split()
ans = []
for i in range(0,len(s)-1):
if len(s[i]) == len(s[i+1]):
f = 0
a = s[i]
b = s[i+1]
for i in range(0,len(s[i])):
if a[i] != b[i]:
f += 1
if f == 1:
if a not in ans:
ans.append(a)
ans.append(b)
if ans != []:
print(ans)
else:
print("No Valid Chain.")
13 changes: 13 additions & 0 deletions December 07/python3_HariVignesh18_BabyBlocks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
def rectangleInCircle(width ,height ,radius):
diagSquare = (width**2 + height**2)
diagonal = diagSquare**0.5
if diagonal > radius*2:
return False
else:
return True
a = [int(i) for i in input().split()]
ans = rectangleInCircle(a[0] , a[1], a[2])
if ans == True:
print("True")
else:
print("False")
23 changes: 23 additions & 0 deletions December 08/python3_HariVignesh18_TheEnchantedForest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
def find_path(n):
ans = [[0]*n for _ in range(n)]
c = 0
i = 0
j = n//2
for k in range(1,(n*n)+1):
ans [i][j] = k
i -= 1
j += 1
c += 1
if c == n:
i += 2
j -= 1
c = 0
else:
if j == n:
j -= n
elif i < 0:
i += n
for row in ans:
print(*row)
n = int(input())
find_path(n)
6 changes: 6 additions & 0 deletions December 09/python3_HariVignesh18_Camels_In_A_String.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
s = input()
c = 1
for i in s:
if ord(i)>64 and ord(i)<91:
c += 1
print(c)
Loading