Preparing for a Codingame exam?

Solarion

Honorary Master
Joined
Nov 14, 2012
Messages
28,050
Reaction score
17,804

Hello guys. I have one of these algorithm type 2 hour exams coming up in 2 weeks time. Algorithms have not always been my strong point but this is a super important job and I need to try to prepare for this. Is there any way to try to get my ducks in a row before hand? Do I do just practice old tests?
 

Hello guys. I have one of these algorithm type 2 hour exams coming up in 2 weeks time. Algorithms have not always been my strong point but this is a super important job and I need to try to prepare for this. Is there any way to try to get my ducks in a row before hand? Do I do just practice old tests?
If you know the platform that’s going to be on use, practice first.
If you don’t know, normally they will send you a link that expires after some time so you can still prep.

Figure out which browser works best.
How strict is when leaving the window.
What runtime it’s uses, like it could be a C# test but using mono.
If the test IDE supports namespace imports or if you have to memorise it etc.
 
Just practicing on the codingame dashboard now, getting some compiles going, checking out what I can or cannot do. It's essentially a Console same as in Visual Studio. Gonna go with MS Edge. Don't trust FF as it has killed a test like this before with script blocking. Just checking those things out DA thanks!
 
This is a little test case I came across. Prints ascii art in a console of what you input. Completely useless but still quite cool!

^
obviously easily impressed


C#:
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;

/**
* Auto-generated code below aims at helping you parse
* the standard input according to the problem statement.
**/
class Solution
{
    static void Main(string[] args)
    {
        int L = int.Parse(Console.ReadLine());
        int H = int.Parse(Console.ReadLine());
        string T = Console.ReadLine();

        const int A = (int)'A';
        const int Z = (int)'Z';

        string str = T.ToUpper();

        for (int i = 0; i < H; i++)
        {

            string row = Console.ReadLine();
            string ret = "";

            foreach (var s in str)
            {
                var c = (int)s;

                if (c < A || c > Z)
                    ret += row.Substring(L * (Z - A + 1), L);
                else
                    ret += row.Substring(L * (c - A), L);
            }
            Console.WriteLine(ret);
        }
    }
}
 
Top
Sign up to the MyBroadband newsletter
X