Showing posts from October, 2016

Python os module- File operations in Python using python os module

Python provides os module which can be used to perform File operations like - create, read, write and delete. Below program performs following operation - 1. Check for a directory and create if it does not exist 2. Create a file . 3. Write into fi…

Median of stream of numbers in Java

Problem statement: Find median of stream of numbers numbers. Reference GeeksForGeeks Median is defined as middle element of sorted elements (even count of numbers) / mean of two middle elements(odd count of numbers) Consider array of numbers as st…

Load More
That is All