Problem
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
Solution
Python :
def solve():
sum = 0
...
How To Add Environment Variable In Windows
How To Add Environment Variable In Windows
Step 1 : Go to the Location of actual executable which entry you want to add in Environment variables.
...
How To DownLoad Full YouTube PlayList ..!!!
How To DownLoad Full YouTube PlayList..!!!
Method 1 : Using Software(4K Downloader)
Step 1 : Download 4K downloader here
Step 2 : Go to the YouTube PlayList Page And Copy the Address of the URL.
Step 3 : Open 4K downloader...
Hacker Rank - Day 23 : BST Level-Order Traversal
Day 23 : BST Level-Order Travarsal
Solution In Java 8:
import java.util.*;
import java.io.*;
class Node{
Node left,right;
int data;
Node(int data){
this.data=data;
left=right=null;
}
}
class Solution{
static...
Hacker Rank - Day 22 : Binary Search Trees
Day 22 : Binary Search Trees
Solution In Java 8:
import java.util.*;
import java.io.*;
class Node{
Node left,right;
int data;
Node(int data){
this.data=data;
left=right=null;
}
}
class Solution{
public...
Hacker Rank - Day 21 : Generics
Day 21 : Generics
Solution In Java 8:
import java.util.*;
class Printer <T> {
/**
* Method Name: printArray
* Print each element of the generic array on a new line. Do not return anything.
* @param A generic array
...
Hacker Rank - Day 20 : Sorting
Day 20 : Sorting
Solution In Java 8:
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String[] args) {
Scanner in = new...