Skip to main content

All Questions

Filter by
Sorted by
Tagged with
10 votes
1 answer
9k views

Given a string, find the length of the longest substring without repeating characters

I wrote an algorithm that solves this problem but I would love to get some feedback on it (especially since I'm not so confident in my Big \$O\$ skills). Do you think this is a good quality algorithm?...
DCS's user avatar
  • 375
1 vote
1 answer
995 views

The Substring Game! challenge

This is the Substring Game! challenge from HackerEarth: Watson gives Sherlock a string (let's denote it by S). Watson calculates all the substrings of S in his favourite order. According to ...
katty's user avatar
  • 605
6 votes
2 answers
304 views

Find a famous writer in a random string

I'm doing a CodeEval challenge, where the object is to find a famous writers name and a year, inside of a random given string. You have a set of rows with names of famous writers encoded inside. Each ...
papasmurf's user avatar
  • 421
11 votes
5 answers
7k views

ASCII generator

Today I stumbled upon CodinGame, a site with programming challenges. I'll describe one of them. ASCII art allows you to represent forms by using characters. To be precise, in our case, these forms ...
Mast's user avatar
  • 13.5k
4 votes
2 answers
375 views

Efficient use of regular expression and string manipulation

The following is my solution to Java vs C++. I think the way I have used the re library is inefficient, and possible erroneous as I am getting tle. ...
user43115's user avatar
  • 329