Sort by

recency

|

125 Discussions

|

  • + 0 comments

    i am looking for a an developer for my gaming website. if anyone is ready to decorate my website than contact me through visiting my website. here is my website link.

    Modgila APK

  • + 0 comments

    this really helped me in reversing the list of a simulation gaming website https://carparkingmulti.com/

  • + 0 comments

    Thanks for the solution, https://www.chromeflanges.com/ I was looking for it for my site

  • + 0 comments

    OCaml solution

    let rec read_lines acc = try
        let line = input_line stdin in
        read_lines (acc @ [line])
      with End_of_file -> acc;;
    
    let arr = read_lines [];;
    
    let rec rev = function
        | [] -> []
        | h::t -> (rev t)@[h];;
    
    let () =
        List.iter print_endline (rev arr);;
    
  • + 0 comments

    Erlang Solution:

    -module(solution).
    -export([main/0]).
    
    read(T)->
        case io:fread("","~d") of
            {ok,[H]} -> read([H|T]);
            _ ->
                T
            end.
    
    output(L,S) ->
        if S=:=0->
                ok;
            S>-1 ->
            [H|T] = L,
            io:format("~p~n",[H]),
            output(T,S-1)
        end.
    
    main() ->
        Li = read([]),
        S=length(Li),
        output(Li,S).