Problem The task is taken from LeetCode (subscription required) – From any string, we can form a subsequence of that […]
Tag: programming-challenge
Plus Minus in Python
Problem You’re given an array containing integer values. You need to print the fraction of count of positive numbers, negative […]
Project Euler problem #11 – Largest product in a grid
Problem I have recently solved the following Project Euler problem: In the 20×20 grid below, four numbers along a diagonal […]
Merge Two Sorted Linked Lists
Problem I solved this problem in C++. I was having trouble though understanding what return headA; and return headB; returns […]
Project Euler #5 – Smallest Multiple
Problem JavaScript is my first programming language, and I’m still pretty new. I’m just looking for feedback. What can I […]
Number in words: recursive function
Problem I would appreciate some feedback on the below code I wrote for a Project Euler problem. The answer comes […]
Minimum number of copies of an application a company needs to purchase
Problem Some applications from vendors are allowed to be installed on multiple computers per user with specific restrictions. In our […]
Python address index +1 with list comprehension
Problem Task from CodingBat: Return the sum of the numbers in the array, returning 0 for an empty array. Except […]
Policemen catch thieves
Problem Given an array of size n that has the following specifications: Each element in the array contains either a […]
TDD approach for Advent of Code challenge: infinite spiral on a grid
Problem I have started the Advent of Code 2017 to learn to use Python and Test Driven Development. I wrote […]