Python

Webinar Date: March 23, 2017
HackerEarth is pleased to announce its next webinar on Blockchain, to help you learn from the best programmers and domain experts from all over the world. Agenda of this webinar: - What is Bitcoin? - Why use Bitcoin? - An overview of how bitcoin/blockchain technology could help the current financial system - What Blockchain platform […]
February 14, 2017
You might remember the Lisp parser we created in the article (Building Your Own Lisp Parser Part I), which is a pre-requisite for this post. You will now see how the buffered input class (UngettableInput in the previous post) can be improved. The Problems Although the UngettableInput class works for our Lisp parser, it is highly […]
February 1, 2017
While writing a full-blown compiler for a programming language is a difficult and frustrating task, writing a smaller and more specific parser can be surprisingly easy if you know a small trick. On the other hand, parsing problems pops up at several places in modern-day programming. So, learning this useful trick can be rewarding. Source: […]
January 12, 2017
Python is one of the most popular programming environments and many developers look to HackerEarth as a way to learn more about the language. Consequently, for the challenges that are hosted on our platform, a huge number of submissions are in Python. We all know how we are able to pass the initial test case, […]
December 29, 2016
In our previous redis blog we gave a brief introduction on how to interface between python and redis. In this post, we will use Redis as a cache, to build the backend of our basic twitter app. We first start the server, if it’s in a stopped state. [crayon-590631c916575314866067/] In case you have not installed […]
December 22, 2016
This is  a small tutorial to start using Redis with Python. We will look at the steps that tell you how to install Redis in your local ubuntu machine. As we are compiling from source this should also represent how to install in any linux distribution. Then, we can look at some basic commands in […]
December 15, 2016
This post will help you get started with Python decorators through some real life examples. Some familiarity with the Python programming language is expected.   Before directly jumping into decorators, let’s take a step back and start with Python functions. This will help you understand the concepts better. Functions A function in Python can be […]
November 16, 2016
NSA whistleblower in exile, Edward Snowden, talks about how FBI could have reviewed 650K emails in less than 8 days! @jeffjarvis Drop non-responsive To:/CC:/BCC:, hash both sets, then subtract those that match. Old laptops could do it in minutes-to-hours. — Edward Snowden (@Snowden) November 7, 2016 Snowden says the FBI could have used hashing to […]
October 19, 2016
I’m assuming that you know basics of python. If not, I would recommend you to read python diaries 1, python diaries 2, and python diaries 3 because some concepts used here are already discussed there. What is a function? A function is a block of organized, reusable code that is used to perform a single, […]
October 13, 2016
Thinking about starting with Python? But you don’t know where and how to start? Maybe, you are looking at your laptop and the distro that you are using, and you’re not exactly sure if that’s enough. Before deciding where you want to code, you should ask yourself two vital questions. What is the environment that […]