Operations with arrays are frequent questions in the interview. Here is the approach to how you would solve Subarray Sums in Python.

You can find a full explanation of this problem and other coding interview sample problems and pseudocode solutions at Stanford's class called CS9: Problem-Solving for the CS Technical Interview. I will distill the approach provided in the above materials further and provide the solutions in Python.

The definition of subarray according to Hackerrank is :

  • A subarray of an -element array is an array composed from a contiguous block of the original array’s elements. For example, if array…

Sort documents by type and extract text from PDF files

Do you need to extract text from different files such as pdfs and Word files?

This quick tutorial shows how sort files by type, and then extract text from PDF files. I downloaded two fake resumes in pdf format from Overleaf to demonstrate how this code works. I am not going to cover how to extract text from Word documents. You can download docxpy Python package and use it to extract text from Word files. Feel free to contact me at anna@sakura-ai.com if you have any questions or need help parsing documents.

The main challenge in extracting text from PDF…

Anna Nyulund

I think therefore I am

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store