Post History
Golfscript, 8 6 bytes, 5 unique !).!(? Explanation: ! # negate , no value makes it 1 ) # increment -> 2 . # duplicate 2 ! # negate 2 = 0 ( # decrement -> -1 ? # exponentiate, 2^-1 =...
Answer
#7: Post edited
# Golfscript, ~~8~~ 6 bytes, ~~5~~ 4 unique- ```
- !).!(?
- ```
- Explanation:
- ```
- ! # negate , no value makes it 1
- ) # increment -> 2
- . # duplicate 2
- ! # negate 2 = 0
- ( # decrement -> -1
- ? # exponentiate, 2^-1 = 1/2
- ```
- Original solution:
- ```
- !)""!((?
- ```
- # Golfscript, ~~8~~ 6 bytes, 5 unique
- ```
- !).!(?
- ```
- Explanation:
- ```
- ! # negate , no value makes it 1
- ) # increment -> 2
- . # duplicate 2
- ! # negate 2 = 0
- ( # decrement -> -1
- ? # exponentiate, 2^-1 = 1/2
- ```
- Original solution:
- ```
- !)""!((?
- ```
#6: Post edited
# Golfscript, ~~8~~ 6 bytes, 4 unique- ```
- !).!(?
- ```
- Explanation:
- ```
- ! # negate , no value makes it 1
- ) # increment -> 2
- . # duplicate 2
- ! # negate 2 = 0
- ( # decrement -> -1
- ? # exponentiate, 2^-1 = 1/2
- ```
- Original solution:
- ```
- !)""!((?
- ```
- # Golfscript, ~~8~~ 6 bytes, ~~5~~ 4 unique
- ```
- !).!(?
- ```
- Explanation:
- ```
- ! # negate , no value makes it 1
- ) # increment -> 2
- . # duplicate 2
- ! # negate 2 = 0
- ( # decrement -> -1
- ? # exponentiate, 2^-1 = 1/2
- ```
- Original solution:
- ```
- !)""!((?
- ```
#5: Post edited
# Golfscript, 8 bytes, 5 unique- ```
!)""!((?- ```
- Explanation:
- ```
! : negation operation, returns 1) : increment 1 to 2""! : negate an empty string to return 1(( : decrement twice to get -1? : exponentiate, 2^-1 = 1/2- ```
Another solution with the same byte and unique counts:- ```
!)""!~)? # bitwise not (~) = -n-1, increment with ) to get -n, 2^-1 = 1/2- ```
- # Golfscript, ~~8~~ 6 bytes, 4 unique
- ```
- !).!(?
- ```
- Explanation:
- ```
- ! # negate , no value makes it 1
- ) # increment -> 2
- . # duplicate 2
- ! # negate 2 = 0
- ( # decrement -> -1
- ? # exponentiate, 2^-1 = 1/2
- ```
- Original solution:
- ```
- !)""!((?
- ```
#4: Post edited
- # Golfscript, 8 bytes, 5 unique
- ```
- !)""!((?
- ```
- Explanation:
- ```
- ! : negation operation, returns 1
- ) : increment 1 to 2
- ""! : negate an empty string to return 1
(( : decrement 2 to get -1- ? : exponentiate, 2^-1 = 1/2
- ```
- Another solution with the same byte and unique counts:
- ```
- !)""!~)? # bitwise not (~) = -n-1, increment with ) to get -n, 2^-1 = 1/2
- ```
- # Golfscript, 8 bytes, 5 unique
- ```
- !)""!((?
- ```
- Explanation:
- ```
- ! : negation operation, returns 1
- ) : increment 1 to 2
- ""! : negate an empty string to return 1
- (( : decrement twice to get -1
- ? : exponentiate, 2^-1 = 1/2
- ```
- Another solution with the same byte and unique counts:
- ```
- !)""!~)? # bitwise not (~) = -n-1, increment with ) to get -n, 2^-1 = 1/2
- ```
#3: Post edited
- # Golfscript, 8 bytes, 5 unique
`!)""!((?`- Explanation:
- ```
- ! : negation operation, returns 1
- ) : increment 1 to 2
- ""! : negate an empty string to return 1
- (( : decrement 2 to get -1
- ? : exponentiate, 2^-1 = 1/2
```
- # Golfscript, 8 bytes, 5 unique
- ```
- !)""!((?
- ```
- Explanation:
- ```
- ! : negation operation, returns 1
- ) : increment 1 to 2
- ""! : negate an empty string to return 1
- (( : decrement 2 to get -1
- ? : exponentiate, 2^-1 = 1/2
- ```
- Another solution with the same byte and unique counts:
- ```
- !)""!~)? # bitwise not (~) = -n-1, increment with ) to get -n, 2^-1 = 1/2
- ```
#2: Post edited
# Golfscript, 8 bytes,- `!)""!((?`
- Explanation:
- ```
- ! : negation operation, returns 1
- ) : increment 1 to 2
- ""! : negate an empty string to return 1
- (( : decrement 2 to get -1
- ? : exponentiate, 2^-1 = 1/2
- ```
- # Golfscript, 8 bytes, 5 unique
- `!)""!((?`
- Explanation:
- ```
- ! : negation operation, returns 1
- ) : increment 1 to 2
- ""! : negate an empty string to return 1
- (( : decrement 2 to get -1
- ? : exponentiate, 2^-1 = 1/2
- ```