Skip to content

Instantly share code, notes, and snippets.

View iamaamir's full-sized avatar
🏠
Working from home

Aamir khan iamaamir

🏠
Working from home
  • Postman
  • New Delhi
  • 17:35 (UTC +05:30)
  • LinkedIn in/itsaamir
View GitHub Profile
@iamaamir
iamaamir / Postfix.java
Last active February 15, 2018 18:15
wap that reads postfix expressions and prints their values. Each input expression should be entered on its own line, and the program should terminate when the user enters a blank line. Please do error checking for any error.
import java.util.EmptyStackException;
import java.util.Scanner;
import java.util.Stack;
/*
wap that reads postfix expressions and prints their values.
Each input expression should be entered on its own line,
and the program should terminate when the user enters a blank line.
Please do error checking for any error.
@iamaamir
iamaamir / VetorsAndList.java
Last active February 3, 2018 23:29
Please write a program to use vector and list to store 10 integers in order (from smallest to largest). You need to find proper location using vector or list functions for each number added. Please do NOT use any sorting function. a. Generate 1 random integer between -100 and 100 and display it on screen b. Insert the number generated in step b …
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.Vector;
import java.util.stream.IntStream;
/*Please write a program to use vector and list to store 10 integers in order
(from smallest to largest).
You need to find proper location using vector or list functions for each number added.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from os import listdir, chdir, rename
# Valid chars in a file name
alpha = 'abcdefghijklmnopqrstuvwxyz0123456789.'
dir_path = "/home/varun/Desktop/Github Projects/CodeKata/Python"