A number , can be thought of as a projection , used for example for measuring , be it time or distance , or for countig . A number is a discrete way of measuring , discrete as in … Read More
Category: data structure and algorithms
What is a signed number ?
The question, what is a signed
number, is actually the question, of how to represent negative, zero, and positive integers, in a computer.
An integer is for example, -1
or 1
, or 0
, so in other … Read More
What is an unsigned number ?
Asking what an unsigned
number or integer is, is actually asking, how to represent the non negative integers, such as 0
, or 1
in a computer.
An integer in mathematics, is any number which belong to … Read More
binary search algorithm in python , and php
Permutate a string letters recursively in python
Let us say we have a string and we want to permutate through its letter . So for example
- if the string is empty it will return an empty list
- if it contains only one characters it must return a
Solving english ruler problem using recursion in python and swift
We must print an english ruler using recursion . An english ruler is ruler where each unit has a number of tick. a unit can be divided into smaller units at 1/2 the interval 1/4 the interval 1/8 the interval … Read More
what is a byte ?
what is a byte ?
A byte is 8 bits ,
[_ _ _ _ _ _ _ _ ] 7 6 5 4 3 2 1 0 number of bits = 7 - 0 + 1 = 8
A … Read More