All Questions
30 questions
2
votes
3
answers
223
views
Phrase to acronym in C from exercism.io
I am learning C and doing challenges like those found on exercism.io and the various data structure & algorithm sites.
I have a sense that while this works and it makes sense to me that it can be ...
6
votes
1
answer
654
views
LeetCode 1638: Count Substrings That Differ by One Character
I'm posting a solution for LeetCode's "Count Substrings That Differ by One Character". If you'd like to review, please do. Thank you!
Problem
Given two strings s and t, find the number of ...
3
votes
1
answer
2k
views
Codewars: Sum Strings
Sum Strings
Codewars kata.
It's supposed to be able to handle big integers.
Question
Given the string representations of two integers, return the string representation of the sum of those integers.
...
2
votes
1
answer
1k
views
(Codewars): Find the Unknown Digit
Kata: https://www.codewars.com/kata/find-the-unknown-digit/train/python
To give credit where credit is due: This problem was taken from the ACMICPC-Northwest Regional Programming Contest. Thank ...
2
votes
2
answers
170
views
Find the middle of the string
The follow code should correctly run the test cases at the bottom.
It works correctly.
I just don't feel like this is clearest way I could write it.
A lot of the complexity comes from having to ...
3
votes
2
answers
137
views
6
votes
2
answers
5k
views
Partitioning input strings by even and odd indexes
I have been trying to learn javascript for a year now, and have just embarked on HackerRank's 30 days of code. After a couple of days I finally solved this problem. Here is the task (if you click the ...
5
votes
1
answer
2k
views
Rövarspråket Language Encoder and Decoder
Used Python 3 for a solution to a Reddit /r/DailyProgrammer challenge.
When we Swedes are young, we are taught a SUPER-SECRET language that only kids know, so we can hide secrets from our confused ...
3
votes
1
answer
282
views
Parsing n lines to count vowels - HackerEarth
I have written a haskell program for the following 'Code Monk' Challenge at HackerEarth.
Here is the challenge description. Basically, we are looking for the number of vowels in a string. The first ...
5
votes
2
answers
168
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 ...
10
votes
2
answers
886
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 word ...
3
votes
2
answers
3k
views
Morse Code Conversion
Challenge
Write a program which reads a file containing Morse Code and outputs the conversion.
Specifications
The first argument is a path to a file.
The file contains multiple lines.
Each line ...
10
votes
2
answers
913
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.
...
8
votes
1
answer
255
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.
...
7
votes
4
answers
1k
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.
Each ...