Skip to content

Instantly share code, notes, and snippets.

View RakibFiha's full-sized avatar
🏠
Working from home

Rakib Fiha RakibFiha

🏠
Working from home
View GitHub Profile
@RakibFiha
RakibFiha / is_unique.lua
Last active October 17, 2020 06:27
Find if a string has unique characters in Lua with Set implementation
View is_unique.lua
#!/usr/bin/env lua
local lib = require "lib"
local totable = lib.totable
local Set = lib.Set
local tablelength = lib.tablelength
local contains = lib.contains
-- isuniqe function implementation
-- print(isuniqe("aabc")) -- would return false