Skip to content

Commit 3b2a621

Browse files
Merge pull request #421 from aishalg/main
deleted from main directory
2 parents 5bebaf9 + 404b0da commit 3b2a621

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

CPP/Problems/49a.cpp

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#include<bits/stdc++.h>
2+
using namespace std;
3+
int main(){
4+
5+
string s;
6+
getline(cin,s);
7+
8+
int l=s.length();
9+
int f=0;
10+
for (int i=l;i=0;i--){
11+
if (s[i]!=' ' || s[i]!='?'){
12+
if (s[i]=='A' || s[i]=='E' || s[i]=='I' || s[i]=='O' || s[i]=='U' || s[i]=='Y' || s[i]=='a' || s[i]=='e' || s[i]=='i' || s[i]=='o' || s[i]=='u' || s[i]=='y' ){
13+
f=1;
14+
break;
15+
16+
}
17+
else
18+
f=0;}}
19+
20+
if (f==1){
21+
cout<<"YES"<<endl;
22+
}
23+
else
24+
cout<<"NO"<<endl;
25+
26+
27+
return 0;
28+
}

CPP/sorting/Heap Sort in C++

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
2+
#include <bits/stdc++.h>
3+
=======
14
// C++ program for implementation of Heap Sort
25

36
#include <iostream>
7+
48
using namespace std;
59

610
// To heapify a subtree rooted with node i

0 commit comments

Comments
 (0)