Exclusivity
by sealldev
🚩 CTFs HackTheBox University CTF 2024 coding
Exclusivity / HackTheBox University CTF 2024

Original Writeup on seall.dev
We have a string of numbers seperated by spaces, we need to remove duplicated and keep the first instance, same order.
String Input: 7 3 7 9 1 3 5 9
String Expected Output: 7 3 9 1 5
# take in the number
n = input()
# calculate answer
n = n.split()
out = list()
for i in n:
if i not in out:
out.append(i)
# print answer
print(' '.join(out))
Flag: HTB{r3m0v1ng_dup5_15_s0_345y_1F_y0u_kn0w_h0w_t0_c0d3!_39fc50047f44d15a5f103b58ea7d2056}
Related Writeups
Conflict Crusher
Awakened by Lena Starling, you, the legendary Space Cowboy, must assist the Minutemen in their fight against the Frontie ...
Energy Crystals
The ancient Starry Spur has been recovered, but its energy matrix remains dormant. As Space Cowboy, your task is to awak ...
Weighted Starfield
The Frontier Starfield signals are destabilized by weighted anomalies. As Space Cowboy, your mission is to restore stabi ...