Tag: string algorithm
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a string s, consisting of “X” and “Y”s, delete the minimum number of characters such that there’s no consecutive …
The ROT47 Cipher can be implemented in the following C/C++ Function. The ROT47 Cipher helps to encode/decode plain-text. #include <stdio.h> #include <string.h> void rot47(char *buf, int l) { for …
Teaching Kids Programming: Videos on Data Structures and Algorithms You are given a string num, representing a large integer. Return the largest-valued odd integer (as a string) that is …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a string s, return the first non-repeating character in it and return its index. If it does not exist, …
Teaching Kids Programming: Videos on Data Structures and Algorithms You are given two lowercase alphabet strings s and t, both of them the same length. You can pick one …