Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0eb5534

Browse files
author
Amogh Singhal
authored
Update first_non_repeating.py
1 parent 3e1376d commit 0eb5534

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎first_non_repeating.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Given an input string, it gives the
2+
# first non repeating character in it
3+
# There are two implementations below
4+
# 1. has less space complexity
5+
# 2. has less time complexity
6+
17
def first_non_repeating(input_string):
28
frequency = dict()
39
flag = None

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /