C++ Caesar Cipher (ASCII Codes) | Algo for Beginners

Sdílet
Vložit
  • čas přidán 3. 06. 2024
  • Caesar Cipher shifts every character by a constant. It's easy to code if we use ASCII values.
    Train&Win high school contest: challenges.reply.com/tamtamy/...
    School registration: replychallenges.com/TrainAndW...
    Homework: Day 1 P03 P04 P07 P09, hit "join" on the right to register and submit solutions codeforces.com/group/yg7WhsFs...
    0:00 ASCII codes
    2:22 check if lowercase
    4:31 digit squared
    6:45 Train&Win by Reply Code Challenges
    7:46 Caesar Cipher
    12:31 homework
    I stream on Twitch: / errichto

Komentáře • 52

  • @Errichto
    @Errichto  Před 2 lety +10

    Live stream tomorrow! I will solve easy coding problems on Tuesday at 5pm CET / 8am PST www.twitch.tv/errichto

    • @nayeembinreza5266
      @nayeembinreza5266 Před 2 lety

      Thanks for giving us these hard questions with easy videos to ubderstand. Hello kamiel my name is nayeem bin reza and I have just admitted to highschool and my classes hasn't started yet. From the pandemic I grew with the interest of coding , problem solving. your videos inspires me and motivates me. thanks for making these videos . THE answer tthe homework 1 is:
      #include
      using namespace std;
      string ceaser_cipher (string s, int k){
      string s2;
      for ( char& c : s ){
      int x = c;
      if ( 65

  • @rubyboy9812
    @rubyboy9812 Před 2 lety +22

    Errichto, your videos are very good. CP is not only a "sport" for many of us, is also a hobby. Incredible work as always.

  • @alinasser2799
    @alinasser2799 Před 2 lety +17

    Making videos like this raises our level and makes us think in a different way. Please continue with such videos

  • @mrlectus
    @mrlectus Před 2 lety +7

    That moment he talked about using mod 26 that clicked something in my brain

  • @MaazKhan-lw6kz
    @MaazKhan-lw6kz Před 2 lety +5

    This is an amazing video!
    Kindly make more of these since you explain it very well and I think this would be extremely helpful for everyone as well.
    May you be in the best of your health.
    Thank you.

  • @ChandraShekhar-by3cd
    @ChandraShekhar-by3cd Před 2 lety +14

    Errichto we all miss your videos, Please help us all by uploading more frequent videos, We miss you!!🙃 Also please upload :
    - Beginner level algo video
    - Pls do consider Leetcode video
    - Codeforces round(Optional)
    Thanks

    • @RatioBozo69
      @RatioBozo69 Před 2 lety +1

      He hasn't done Codeforces in a while I thing so yeah maybe he should do a screencast of the next div 1 contest

  • @matiaspardini3758
    @matiaspardini3758 Před 2 lety

    Your videos give me peace, they are so easy to follow and i feel really comfortable. Keep up the good content!

  • @jeffersonkohler4162
    @jeffersonkohler4162 Před rokem

    Errichto thanks for this video and this explanation. I was running a totally different (and complex) solution to Ceasar Cipher due to a lack of knowledge about operations with characters. This was very helpful.

  • @tahir2443
    @tahir2443 Před 2 lety

    I love these videos. I am trying to learn C++ and trying to get in to competitive programming and this is useful. Thank you

  • @felipe2637
    @felipe2637 Před 2 lety +1

    please continue this beginner series, it's very helpful

  • @guidoenr
    @guidoenr Před 2 lety

    Thank you dear Kamil! Cheers from ARG 🇦🇷

  • @josealejandrovaroncarreno1692

    I think this series of videos where you teach beginners is very good

  • @JavidCode
    @JavidCode Před 2 lety

    Errichto, thanks. Good clear explanation of the matter.

  • @josealejandrovaroncarreno1692

    this moment is called happiness

  • @matheuscosta5330
    @matheuscosta5330 Před 2 lety +1

    This serie Algo for Beginners, is really nice, even if you are not a begginer

  • @fbj736
    @fbj736 Před 2 lety

    Errichto it was really interesting video. Thank a lot.

  • @niikurasu2855
    @niikurasu2855 Před 2 lety +1

    Thank you for the great lessons

  • @AmitSharma-yb9vc
    @AmitSharma-yb9vc Před 2 lety

    Please keep doing this work. 🙏

  • @atharvasalokhe5168
    @atharvasalokhe5168 Před 2 lety +2

    Errichto looks more handsome without his specs 😂😂❣️

  • @vaibhaves
    @vaibhaves Před 2 lety +1

    What happened to the weekly interview streams?

  • @SohailAhmed-hu3dw
    @SohailAhmed-hu3dw Před rokem

    wonderful content

  • @hckermanrober03
    @hckermanrober03 Před 2 lety

    Thanks Errichto...for helping NOobs

  • @diegonayalazo
    @diegonayalazo Před rokem

    Thanks for sharing

  • @jatinsingh-kj9rh
    @jatinsingh-kj9rh Před 5 měsíci

    Hi
    What data types will be used in for loop to read and encrypt a whole sentence.
    Thanks in advance

  • @abdullahsaid4765
    @abdullahsaid4765 Před 2 lety

    thx bruh from all my heart 😍

  • @itssidhere
    @itssidhere Před 2 lety

    Hi, can you make a small video on matroids which are used to prove the correctness of greedy algorithms?

  • @mohammedashiqurrahmanbaig6416

    Kamil you looks really different without glasses.Good Luck brother.

  • @skt7088
    @skt7088 Před 2 lety

    Hi Errichto
    Hi Guys I have a doubt
    In bit masking how do we bit mask a negative number?
    Like for an example if we want to find the bit mask of the vector [2, 4,-7, -9]
    Then how should we do it?

  • @onnoy4304
    @onnoy4304 Před 2 lety

    Can you suggest any books or tutorial for advanced c++ for competitive programming?you can also do a tutorial

  • @rashidsayyed1443
    @rashidsayyed1443 Před rokem

    hey i am a beginner i was able to decode and cipher uppercase and also spaces but how do i do special characters? do special characters get stored in string datatype? then how will typecast or store them pls help i want to do it with similar logic using function calls

  • @tom_cruz424
    @tom_cruz424 Před 2 lety

    Thank for existing

  • @prateeksingh6018
    @prateeksingh6018 Před 2 lety

    hi Errichto, i tried to contact you on various platforms. just asking, where are you most active ?

  • @avahome5285
    @avahome5285 Před 2 lety

    wow, you are back!!! yeah.

  • @user-ly8fh8th5q
    @user-ly8fh8th5q Před 2 lety

    What is the name of the program that he draws in it

  • @ChandraShekhar-by3cd
    @ChandraShekhar-by3cd Před 2 lety +2

    Erricho which tool is this for drawing? Could you please name this?

    • @Errichto
      @Errichto  Před 2 lety +2

      I normally use Onenote, but this time it's just Kolourpaint (which is Ubuntu version of Paint).

    • @ChandraShekhar-by3cd
      @ChandraShekhar-by3cd Před 2 lety +2

      @@Errichto Thanks Errichto. How have you been, we see fewer streams from your end, we really miss you!

  • @angeldarco
    @angeldarco Před 2 lety

    Errichto is the caesar ...

  • @tuenhanvo9310
    @tuenhanvo9310 Před rokem

    Can someone explain to me in the digit squared why does it have to be x*x

  • @extensionx1285
    @extensionx1285 Před 2 lety +3

    Thankyou++;

  • @itz_me_imraan02
    @itz_me_imraan02 Před 2 lety

    Hit like who wants DSA playlist by him...💜

  • @abdullasulfikkar5282
    @abdullasulfikkar5282 Před 2 lety

    Will there be a time where people can't create new problems and CP will die? I hope that doesn't happen.

  • @yosuasasauw4006
    @yosuasasauw4006 Před 2 lety

    what a good mam

  • @vedkorla300
    @vedkorla300 Před 2 lety

    Fuck Valentine's me and the boiis only watch Kamil teaching us ASCII.

  • @ChandraShekhar-by3cd
    @ChandraShekhar-by3cd Před 2 lety +2

    First Like , First comment!

  • @Odpalony
    @Odpalony Před 2 lety

    pozdrawiam, szkoda ze nie odpisales na email :)

  • @NeroZ3R0
    @NeroZ3R0 Před 2 lety

    Before RU - Ukraine War you teach people how to cipher "Attack" ? lmao !

  • @jhbonarius
    @jhbonarius Před 2 lety +1

    Wait what? You are teaching people to use bits/stdc++.h and include namespace std? That's REALLY frowned upon by the major C++ community. Please teach newbies the proper way of including and scoping.

    • @Errichto
      @Errichto  Před 2 lety +6

      Yes, I use those. I teach algorithms, not proper C++ style. While "bits" doesn't always compile, everybody uses "using namespace std" in competitive programming. It's just so convenient. Learning computational thinking is important. When you have a job, it's easy to stop using something.
      Similarly, it's ok to teach basic English with sentences like "this is pen" instead of "this is a pen".
      (But I get your point and I don't claim that my method of teaching is superior.)