Tag: Computer programming

  • How to reduce eye strain when working with a computer

    How to reduce eye strain when working with a computer

    These simple steps help you reduce eye strain when working with a computer in an office or at home. Light should be from the side left or right. Natural light is ideal, wost is mixed natural + artificial.Once in a while get up walk around and look out the window somewhere far. Get your eyesight […]

  • Auto zip folders in separate archive files 7zip bat script

    Auto zip folders in separate archive files 7zip bat script

    Automatically zip folders in separate archive files 7zip bat script batch processing separate folders to archive in separate zip files or 7zip files. How to use Zip folders in separate archive files with 7-Zip and a batch file script in Windows 11. This productivity life hack will speed-up your work when you need to archive […]

  • Why I deleted all my GitHub repos

    Why I deleted all my GitHub repos

    Why I deleted all my GitHub repos and why you might want to do that too. GitHub is a popular website to share Git repositories or repos as they’re usually called. When you create a Git repository on GitHub, you can share it with the public and be able to work together on the same […]

  • 412. Fizz Buzz Python 3 Solution

    412. Fizz Buzz Python 3 Solution

    412. Fizz Buzz Python 3 Solution for LeetCode and HackerRank problems Requirements Input: integer n Output: string array answer (1-indexed) where: answer[i] == “FizzBuzz” when i is divisible by both 3 and 5. answer[i] == “Fizz” when i is divisible by 3. answer[i] == “Buzz” when i is divisible by 5. answer[i] == i for […]

  • How to learn Python as a second language

    How to learn Python as a second language

    How to learn Python as a second language. After watching and reading few tutorials you still can’t say that you know much Python and that’s probably true. How I try to learn it, still work in progress, is to use a project-based approach. Learn the basics of the language. 1. No semicolons; 2. Indentation matters […]

  • Random Password generator in Python

    Random Password generator in Python

    Random Password generator in Python How I wrote a random secure password generator in Python in 30 min. What I needed was a small script that I execute and generate a random password that is then copied to the clipboard and all I had to do was paste it Ctrl+V to use it. Every time […]

  • 155. Min Stack

    155. Min Stack

    155. Min Stack Solution programming interview question. Design a stack that can return the minimum element in constant time and also support pus, pop and top methods. Example:Input[“MinStack”,”push: -3″,”push: 0″,”push: -5″,”getMin”,”pop”,”top”,”getMin”] OutputMinStack minStack = new MinStack();minStack.push(-3); // returns nullminStack.push(0); // returns nullminStack.push(-5); // returns nullminStack.getMin(); // return -5minStack.pop(); // returns nullminStack.top(); // return 0minStack.getMin(); // […]