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!

10 Oct 2022 1 minute read 0 comments Lochard

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...

C Kata - Double Char

2 Oct 2022 1 minute read 0 comments Lochard

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...

C Kata - Find the smallest integer in the array

23 Sep 2022 1 minute read 0 comments Lochard

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...

C++ Kata - Reversed Strings

21 Sep 2022 1 minute read 0 comments Lochard

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...

Rust Kata - Reversed Strings

19 Sep 2022 1 minute read 0 comments Lochard

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...

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

21 Aug 2022 1 minute read 0 comments Lochard

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...