Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.

All Questions

Filter by
Sorted by
Tagged with
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 ...
jgnovak-dev's user avatar
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 ...
Emma Marcier's user avatar
  • 3,702
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. ...
Tobi Alafin's user avatar
  • 1,792
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 ...
Tobi Alafin's user avatar
  • 1,792
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 ...
TMB's user avatar
  • 209
3 votes
2 answers
137 views

Program that prints out the initials of a given name

...
Librarian's user avatar
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 ...
Dream_Cap's user avatar
  • 641
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 ...
Aaron S.'s user avatar
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 ...
Jonathan Chouraki's user avatar
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 ...
Legato's user avatar
  • 9,919
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 ...
Legato's user avatar
  • 9,919
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 ...
Legato's user avatar
  • 9,919
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. ...
Legato's user avatar
  • 9,919
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. ...
Legato's user avatar
  • 9,919
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 ...
Legato's user avatar
  • 9,919

15 30 50 per page