Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A string is a sequence of characters. It is commonly used to represent text or a sequence of bytes. Use this tag along with the appropriate programming language being used.
7
votes
4
answers
982
views
No more filthy words
Challenge
Given a list of words mixed with extra symbols. Write a program that will clean up the words from extra numbers and symbols.
Specifications
The first argument is a path to a file.
Eac …
3
votes
1
answer
1k
views
Determining the existence of string Intersections
Problem:
Given 2 strings, consider all the substrings within them
of length len. Len will be 1 or more.
Returns true if there are any such substrings which appear in both strings. …
8
votes
2
answers
804
views
These words are so dirty
Challenge:
Write a program that will clean up the words from extra numbers and symbols.
Specifications:
The first argument is a path to a file.
Each line includes a test case with a list …
10
votes
2
answers
894
views
C the large print
This is the Longest lines challenge from CodeEval:
Challenge
Write a program which reads a file and outputs a specified number of lines, sorted on length in descending order.
Specificati …
5
votes
2
answers
142
views
Did you twist my words?
Challenge
Given two strings, determine if the second string is a rotation of the first.
Specifications
The first argument is a path to a file.
The file contains multiple lines. … Each line is a test case represented by two comma separated strings.
For each test case print out True/False if the second string is a rotation of the first. …
2
votes
2
answers
146
views
Two and a sub string
Challenge:
Given two strings, A and B. Find if there is a substring that appears
in both A and B.
Specifications:
Several test cases will be given to you in a single file. …
4
votes
2
answers
59
views
Inserting data into a file
So, given a file with the following format:
[header]
line of data
line of data
line of data
line of data
[header 2]
line of data
line of data
line of data
...
I add a l …
3
votes
2
answers
4k
views
String 'expanding' - reinserting repeating characters
The challenge: Given a String, for each digit in that original string, replace that digit with that many occurrences of the character following it. So a3tx2z yields attttxzzz.
My Solution:
import ja …
3
votes
1
answer
1k
views
Finding the length of the largest run
Note: A run is a series of adjacent chars that are the same.
I just want to answer a few questions:
Is this readable?
Does it need commenting or is it self-descriptive enough?
Are there any efficie …
5
votes
1
answer
7k
views
Multiplying Lists
Challenge:
Given 2 lists of positive integers.
Write a program which multiplies corresponding elements in these lists
Specifications:
Your program should accept as its first argument a pat …
11
votes
3
answers
9k
views
Empty Line delimiter, single line output
I'm used to only processing, at most, one line of a file at a time. This is my first time changing the delimiter, and the objective here is to take a file containing lines such as:
Bubbles,
Blos …
10
votes
2
answers
449
views
You need to diversify your strings
The file contains input strings, one per line.
Print the permutations of the string separated by commas, in alphabetical order. …
8
votes
1
answer
249
views
Snakes and Letters
This is the "Clean up the words" challenge from CodeEval:
Challenge
Given a list of words mixed with extra symbols. Write a program that will clean up the words from extra numbers and symbols …
10
votes
2
answers
8k
views
Converting Morse Code
The Morse Code strings are alphanumeric.
Sample Input
.- ...- ..--- .-- .... .. . -.-. -..- ....- ..... …
9
votes
2
answers
867
views
The veiled guise of binary and string
Challenge
Conceal a binary code within a word.
Specifications
The first argument is a path to a file.
The file contains multiple lines.
Each line is a test case represented by a space separated wo …