photo

Benjamin Chen


Last seen: oltre un anno fa Attivo dal 2017

Followers: 0   Following: 0

Statistica

All
  • Thankful Level 1
  • Solver

Visualizza badge

Feeds

Visto da

Domanda


Custom exceptions private methods
I would like to raise a custom error/exception when a user tries to call a private method/constructor. Suppose I have a class: ...

oltre 6 anni fa | 0 risposte | 0

0

risposte

Risolto


The 5th Root
Write a function to find the 5th root of a number. It sounds easy, but the typical functions are not allowed (see the test su...

oltre 6 anni fa

Domanda


Method chaining unexpected behaviour?
I have noticed some unexpected behaviour with method chaining. Specifically I have a class A from which I want to call the stati...

oltre 6 anni fa | 2 risposte | 1

2

risposte

Risolto


Pernicious Anniversary Problem
Since Cody is 5 years old, it's pernicious. A <http://rosettacode.org/wiki/Pernicious_numbers Pernicious number> is an integer w...

oltre 6 anni fa

Risolto


Extra safe primes
Did you know that the number 5 is the first safe prime? A safe prime is a prime number that can be expressed as 2p+1, where p is...

oltre 6 anni fa

Risolto


Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...

oltre 6 anni fa

Risolto


How to subtract?
*&plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn &plusmn* * Imagine you need to subtract one...

oltre 6 anni fa