Print non-repeated character
Posts: 169
Reputation: 2
Shane Dunk
The very first are in this group The very first are in this group
Offline

03-30-2021, 08:17 AM
#1

How do you print the first non-repeated character from a string?

Posts: 128
Reputation: 0
Oliver
The very first are in this group The very first are in this group
Online

04-03-2021, 09:14 AM
#2
Get character while looping over StringPut this character in LinkedHashMap with count. If character is already there, increase count by 1.


Users browsing this thread: 1 Guest(s)


Copyright 2017-2021 All rights reserved.
Powered By MyBB, © 2002-2021 MyBB Group.
This forum uses Lukasz Tkacz MyBB addons.