Problem : https://www.hackerrank.com/challenges/weather-observation-station-9/problem
Solution :
/*
Enter your query here.
*/
SELECT DISTINCT CITY FROM STATION WHERE LEFT(CITY,1) NOT IN ('a','e','i','o','u');
Problem : https://www.hackerrank.com/challenges/weather-observation-station-9/problem
Solution :
/*
Enter your query here.
*/
SELECT DISTINCT CITY FROM STATION WHERE LEFT(CITY,1) NOT IN ('a','e','i','o','u');
Solution :
/*
Enter your query here.
*/
SELECT CITY , STATE FROM STATION;
Solution :
SELECT * FROM CITY WHERE COUNTRYCODE="JPN";
Solution :
SELECT * FROM CITY WHERE ID = 1661;
Problem : https://www.hackerrank.com/challenges/c-tutorial-conditional-if-else/problem
Solution :
#include <bits/stdc++.h>
Problem : https://www.hackerrank.com/challenges/java-stdin-and-stdout-1/problem
Solution : import java.util.*;
Problem : https://www.hackerrank.com/challenges/welcome-to-java/problem
Solution : public class Solution {Problem : https://www.hackerrank.com/challenges/arrays-introduction/problem
Solution :
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
void reverse(int A[],int size){
for(int i = size -1 ;i>=0;i--){
cout<<A[i]<<" ";
}
}
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
int size;
cin>>size;
int A[size];
for(int i =0;i<size;i++){
cin>>A[i];
}
reverse(A,size);
return 0;
}