Go: Fibonacci Sequence Rate Limiter

A fibonacci with modulo sequence is defined for a given modulo, mod, as follows: fib[x] = (fib[x – 1] + fib[x –…

Python: Dominant Cells

There is a given list of lists of integers that represent a 2-dimensional grid with n rows and m columns. A cell…

Python: Shopping Cart

The task is to implement two classes: ShoppingCart and Item according to the following requirements: Item – An item is instantiated using…

User-Friendly Password System

A website is programming an authentication system that will accept a password either if it’s the correct password or if it’s the correct password…

Hotel Construction

There are a certain number of cities in a country, some of which are connected with bidirectional roads. The number of roads…

Password Decryption

In a computer security course, you just learned about password decryption. Your fellow student has created their own password encryption method, and…

Balanced System Files Partition

The directory structure of a system disk partition is represented as a tree. Its n directories are numbered from 0 to n-1, where the root directory has the number 0. The…

4 Multiple Choices of Java

Java – Static Analysis What is the output of the following Java code? public class Test {     public static void main(String[]…

Java: Braces

Given a list of strings of bracket characters: {}(), the string of brackets is balanced under the following conditions: It is the…

Go: JSON Encoding

Create a JSON-encoding system for objects. Write a struct called Manager with fields FullName and Position (both string), then Age and YearsInCompany…