As a newbie programmer
As a newbie programmer

As a newbie programmer

Sharing entry level codes. My snippets on GitHub https://github.com/locharp/code-snippets

C Kata - Convert a Number to string!

Learning from YayoDrayber, I am sharing my CodeWars Kata.   DESCRIPTION We need a function that can transform a number (integer) into a string. What ways of achieving this do you know? In C, return a dynamically allocated string that will be freed by...

Lochard 1 minute read 10 Oct 2022 0 comments $0.11

C Kata - Double Char

Learning from YayoDrayber, I am sharing my CodeWars Kata.   DESCRIPTION: Given a string, you have to return a string in which each character (case-sensitive) is repeated once.   Examples (Input -> Output): * "String" -> "SSttrriinngg" * "Hello World...

Lochard 1 minute read 2 Oct 2022 0 comments $0.18

C Kata - Find the smallest integer in the array

Learning from YayoDrayber, I am sharing my CodeWars Kata.   DESCRIPTION: Given an array of integers your solution should find the smallest integer.   For example: Given `[34, 15, 88, 2]` your solution will return `2` Given `[34, -345, -1, 100]` your...

Lochard 1 minute read 23 Sep 2022 0 comments $0.02

C++ Kata - Reversed Strings

Learning from YayoDrayber, I am sharing my CodeWars Kata which could also be a reference for myself in the future.   This is the same as the last Kata but in C++. I switch to C++ because Publish0x doesn't have highlight for Rust.   DESCRIPTION: Comp...

Lochard 1 minute read 21 Sep 2022 0 comments $0.03

Rust Kata - Reversed Strings

Learning from YayoDrayber, I am sharing my CodeWars Kata which could also be a reference for myself in the future.   DESCRIPTION: Complete the solution so that it reverses the string passed into it. 'world' => 'dlrow' 'word' => 'drow' Starting c...

Lochard 1 minute read 19 Sep 2022 0 comments $0.02

A very basic base for a DHTML game (Advanture?)

Seeing someone said that she wants to make a game for her boyfriend birthday's on another website but seemed to be convinced that there won't be enough time to learn and code a simple game. Since I am also a beginner on coding, I was interested and c...

Lochard 1 minute read 21 Aug 2022 0 comments $0.03