Kalpit Sancheti
Kalpit Sancheti
  • 59
  • 6 539
Atcoder Beginner Contest (ABC) 391 | ABCDE solved
Questions with Timestamps:
00:00 A- Shuffled Equation
01:30 B- Who is Missing?
03:30 C- Bib
10:30 D- Doubles
21:00 E- Cables and Servers
KEY IDEAS 💡:
D-Bruthe forced over all possible choices of two dice and for the probablity :
for each number coming on both dice : probablity on dice 1 * probablity on dice 2 .. we can write it as for common numbers in both dice : (frequency in dice 1 * frequency in dice 2)/ (total in dice 1 * total in dice 2)
E- Using DSU .. First find the extra edges ie the nodes which are already connected are the extra edges and stored them .. Now ans would be number of components -1 .. Now stored all the ulimate parents in seperate vector and for all the extra edges found the ulimate parent which was not connected to this node / edge and merged them ...
E was implementation difficult task hence took lot of time and WA .. But finally got AC
Didin't get much time to try F problem
CODES ✅ :
A- atcoder.jp/contests/abc392/submissions/62499915
B- atcoder.jp/contests/abc392/submissions/62505490
C- atcoder.jp/contests/abc392/submissions/62516747
D- atcoder.jp/contests/abc392/submissions/62525447
E- atcoder.jp/contests/abc392/submissions/62560748
#atcoder #competitiveprogramming #codeforces
Переглядів: 56

Відео

CODEFORCES Round 1002 DIV-2 | A,B,C solved , D Tried
Переглядів 9316 годин тому
Questions with Timestamps: 00:00 A. Milya and Two Arrays 06:35 B. Cost of the Array 23:30 C. Customer Service 1:38:40 D.Graph and Graph KEY IDEAS 💡: A- Created set of elements of Vector a and b .. If anyone of them has 1 size ie all same elements then other should have atleast 3 distinct elements .. Otherwise Answer is always YES B- N=K is the edge case , Otherwise answer is always 1 or 2 .. Lo...
Atcoder Beginner Contest (ABC) 391 | ABCDE solved
Переглядів 18319 годин тому
Questions with Timestamps: 00:00 A - Lucky Direction 03:30 B - Seek Grid 09:40 C - Pigeonhole Query 14:30 D - Gravity 31:30 E - Hierarchical Majority Vote KEY IDEAS 💡: A- Nothing much to discuss B- Brute forces checked for all m x m matrices in the S grid C- Maintained a nest in form of set for each indexed , for each query erased and assigned new positions to the Bird . Cnt stores the nests mo...
CODECHEF Starters-171 DIV-1 | A,B solved
Переглядів 46День тому
Questions with Timestamps: 0:00 A - KEY IDEAS 💡: A- We can swap only the numbers with same setbits , So just store them seperately and sort them at their respective positions . At last check if the array becomes sorted or not B- Binary search on Answer with kadane's algo ..Try to put the positive elements until the sum is less than mid otherwise put the negative elements . If at any point sum b...
Ethflow CODEFORCES Round 1001 DIV-1+2 | A,B,C solved , E1 Tried
Переглядів 10014 днів тому
Questions with Timestamps: 00:00 A. String 02:00 B. Clockwork 11:49 C. Cirno and operations 1:07:00 Reading D and E1 1:30:00 E1 (Observations ) 2:10:00 E1 (Coding) KEY IDEAS 💡: A- Any subsequence we take it wont change increase number of ones by more than 1 .. Hence choose only single 1 , therefore ans is count of ones B-Calculate the maximum steps we can move right or left given the current Ti...
CODEFORCES Round -997 DIV-2 | A,B,C solved
Переглядів 26021 день тому
Questions with Timestamps: 00:00 A. Shape Perimeter 11:20 B. Find the Permutation 25:05 C. Palindromic Subsequences 35:10 D. Unique Median KEY IDEAS 💡: A- Count x and y perimeter separately .. If we move x steps forward our perimeter increases by x B-Used topological sort .. Directed Edges were made like this if g[i][j] is 1 means they are connected and we want smaller to come first hence small...
CODECHEF Starters-169 DIV-1 | A,B solved
Переглядів 8221 день тому
Questions with Timestamps: 0:00 A - Hamming equivalent 6:30 B - Constant Subsequence 22:50 C - Realising its too hard KEY IDEAS 💡: A- We can swap only the numbers with same setbits , So just store them seperately and sort them at their respective positions . At last check if the array becomes sorted or not B- Binary search on Answer with kadane's algo ..Try to put the positive elements until th...
CODEFORCES ROUND 996 (div- 2) | A,B,C solved
Переглядів 20428 днів тому
Questions with Timestamps: 0:00 A 03:10 B 10:20 C #codeforcessolutions #codeforces #competitiveprogramming
Atcoder Beginner Contest (ABC) 388 | ABCDE solved
Переглядів 30728 днів тому
Questions with Timestamps: 0:00 A 01:35 B 05:40 C 09:50 D 18:50 E #atcoder #competitiveprogramming #codeforces
CODECHEF Starters-168 DIV-2 | A,B,C,D solved
Переглядів 155Місяць тому
Questions with Timestamps: 0:00 A - Make ODD 3:00 B-Binary Removals 9:30 C-No Two Alike 26:30 D-Equate XOR #codechef #codechefsolution #competitiveprogramming
CODEFORCES Educational Round-173 | A,B,C, solved
Переглядів 44Місяць тому
Questions with Timestamps: 0:00 A 2:30 B 25:47 C #codeforcessolutions #codeforces #competitiveprogramming
Atcoder Beginner Contest (ABC) 385 | ABCD solved
Переглядів 101Місяць тому
Questions with Timestamps: 0:00 A #atcoder #competitiveprogramming #codeforces
CODEFORCES ROUND 994 (div- 2) | A,B,C, solved
Переглядів 150Місяць тому
Questions with Timestamps: 0:00 A 06:20 B 27:00 C #codeforcessolutions #codeforces #competitiveprogramming
CODEFORCES Global Round-28 | A,B,C,D, solved
Переглядів 238Місяць тому
Questions with Timestamps: 0:00 A 3:00 B 12:02 C 32:00 D #codeforcessolutions #codeforces #competitiveprogramming
Atcoder Beginner Contest (ABC) 384 | ABCDE solved
Переглядів 211Місяць тому
Questions with Timestamps: 0:00 A 2:06 B 4:50 C 15:20 D 31:15 E #atcoder #competitiveprogramming #codeforces
CODECHEF Starters-164 DIV-2 | A,B,C,D solved
Переглядів 106Місяць тому
CODECHEF Starters-164 DIV-2 | A,B,C,D solved
CODEFORCES ROUND 991 (div- 3) | A,B,C,D,E,F solved
Переглядів 1312 місяці тому
CODEFORCES ROUND 991 (div- 3) | A,B,C,D,E,F solved
CODECHEF Starters-159 DIV-2 | A,B,C,D,E,F solved
Переглядів 1203 місяці тому
CODECHEF Starters-159 DIV-2 | A,B,C,D,E,F solved
Virat's Century and India's Win || ICPC PRELIMS 23 || Explanation with code
Переглядів 1913 місяці тому
Virat's Century and India's Win || ICPC PRELIMS 23 || Explanation with code
Educational Codeforces Round 171 | A,B,C solved
Переглядів 833 місяці тому
Educational Codeforces Round 171 | A,B,C solved
LeetCode Weekly contest-421 screencast | A,B,C
Переглядів 663 місяці тому
LeetCode Weekly contest-421 screencast | A,B,C
Atcoder Beginner Contest (ABC) 376 | ABCDE solved
Переглядів 1563 місяці тому
Atcoder Beginner Contest (ABC) 376 | ABCDE solved
Atcoder Beginner Contest (ABC) 375 | ABDE solved
Переглядів 803 місяці тому
Atcoder Beginner Contest (ABC) 375 | ABDE solved
CODECHEF Starters-154 DIV-2 | A,B,C,D,E solved
Переглядів 644 місяці тому
CODECHEF Starters-154 DIV-2 | A,B,C,D,E solved
CODEFORCES ROUND 975 (div- 2) | A,B,C solved
Переглядів 694 місяці тому
CODEFORCES ROUND 975 (div- 2) | A,B,C solved
Atcoder Beginner Contest (ABC) 370 | ABCD solved
Переглядів 954 місяці тому
Atcoder Beginner Contest (ABC) 370 | ABCD solved
CODEFORCES ROUND 975 (div- 2) | A,B,C solved
Переглядів 674 місяці тому
CODEFORCES ROUND 975 (div- 2) | A,B,C solved
LeetCode Weekly contest-414 screencast | A,B,C
Переглядів 635 місяців тому
LeetCode Weekly contest-414 screencast | A,B,C
Atcoder Beginner Contest (ABC) 370 | ABCD solved
Переглядів 1715 місяців тому
Atcoder Beginner Contest (ABC) 370 | ABCD solved
CODECHEF Starters-150 DIV-2 | A,B,C,D solved
Переглядів 415 місяців тому
CODECHEF Starters-150 DIV-2 | A,B,C,D solved

КОМЕНТАРІ

  • @animeshnath1087
    @animeshnath1087 День тому

    did you solved the last one after?

  • @jaylandge7517
    @jaylandge7517 День тому

    no voice bro

    • @kalpitsancheti803
      @kalpitsancheti803 День тому

      @@jaylandge7517 only screencast , I am not speaking or explaining anything

  • @indokalpasaikia1
    @indokalpasaikia1 5 днів тому

    Bro how did get the intuition behind solving c

  • @anonymous.234
    @anonymous.234 7 днів тому

    Mujhe bhi screencasting krni padegi ??

  • @Abhay14
    @Abhay14 7 днів тому

    Ek feedback dun to bhai music k badle apni voice dala kro kya soch rhe ho like that and approach kaise bnai ho ske to dry run bhi 😅

    • @kalpitsancheti803
      @kalpitsancheti803 7 днів тому

      @@Abhay14 sharam aati hai

    • @Abhay14
      @Abhay14 6 днів тому

      @ sharam kya bhai kon ka tumhe koi personally jaanta h jo moo pr bolegga

  • @Abhay14
    @Abhay14 7 днів тому

    bhai explain me krdette D vala nhi hua mera

    • @kalpitsancheti803
      @kalpitsancheti803 7 днів тому

      @@Abhay14 description se nahi aaya samajh ?

    • @Abhay14
      @Abhay14 7 днів тому

      Ye question hi samajh nhi aaya bhai mujhe to ABC teeno kr diye the but ye nhi hua

  • @methamphetamine36a10
    @methamphetamine36a10 21 день тому

    how can i become like u in coding ofc?

  • @mittu_006
    @mittu_006 23 дні тому

    my approach for c void solve() { int n; cin>>n; if(n == 6){cout<<"1 1 2 3 1 2"<<nl;return;} cout<<" 1 2 "; for(int i = 3;i<=n-2;i++) cout<<i<<" "; cout<<"1 2 "<<nl; }

  • @Guesswho8812
    @Guesswho8812 23 дні тому

    It would be helpful, if you explained your approach instead of uploading low effort screencasts 🐸

    • @manoor0858
      @manoor0858 23 дні тому

      he was solving in real time bruh why would he waste time in explaining

    • @Guesswho8812
      @Guesswho8812 23 дні тому

      @manoor0858 you clearly missed the point, after giving the contest he can add voiceover to these screencast or even make even shorter videos of him just explaining the approach

    • @AtharvaSheershPandey
      @AtharvaSheershPandey 23 дні тому

      Bhai wo NSUT mei hai, he probably won't have that much time.​@@Guesswho8812

    • @kalpitsancheti803
      @kalpitsancheti803 23 дні тому

      🤣

  • @mittu_006
    @mittu_006 25 днів тому

    Bro just tell the idea 💡 before you code

    • @kalpitsancheti803
      @kalpitsancheti803 25 днів тому

      In contest i don't have much time to explain .. also i don't like to speak

    • @mittu_006
      @mittu_006 25 днів тому

      @@kalpitsancheti803 i am not telling you to speak . after contest while editing just display a text on your idea

    • @kalpitsancheti803
      @kalpitsancheti803 25 днів тому

      @@mittu_006 good idea but takes time Maybe I can explain in the comments

    • @kalpitsancheti803
      @kalpitsancheti803 25 днів тому

      @@mittu_006 thanks for the feedback Would try from next time

  • @mittu_006
    @mittu_006 28 днів тому

    bro why can't you explain with your voice . it will be helpful

  • @manibhushankumarsingh5196
    @manibhushankumarsingh5196 28 днів тому

    Sound kaha hai bhai ...?

  • @ujjawalmodi2002
    @ujjawalmodi2002 Місяць тому

    Can u plz make a detailed explanatory video of equate xor ?

    • @kalpitsancheti803
      @kalpitsancheti803 Місяць тому

      @@ujjawalmodi2002 I am probably not that good at explaining that U can refer to tle eliminators pcd for the same Thanks

  • @ShaikUmar-lo2fv
    @ShaikUmar-lo2fv Місяць тому

    No voice

  • @sparky_script
    @sparky_script Місяць тому

    Big fan

  • @anonymous.234
    @anonymous.234 Місяць тому

    when thala codes, world sees >>

  • @JackpotGaming
    @JackpotGaming Місяць тому

    Speedy🔥

  • @stockfish113
    @stockfish113 Місяць тому

    Nice one man. Deserve more likes!

  • @himanshuprajapati9475
    @himanshuprajapati9475 Місяць тому

    no sound actually

    • @kalpitsancheti803
      @kalpitsancheti803 Місяць тому

      @@himanshuprajapati9475 i am not speaking..just screen recording

  • @MonilMehta-w8l
    @MonilMehta-w8l Місяць тому

    could u do pcd for atcoder contests as their are less resources for it

  • @mayankshakya9200
    @mayankshakya9200 Місяць тому

    Bhai tumari rating kya hai

  • @simarjeetsingh961
    @simarjeetsingh961 2 місяці тому

    orz

  • @ramandeepsingh8464
    @ramandeepsingh8464 2 місяці тому

    Bhai i message you in your CF please reply if you see my message 🙏

  • @simarjeetsingh961
    @simarjeetsingh961 3 місяці тому

    orz

  • @simarjeetsingh961
    @simarjeetsingh961 3 місяці тому

    Thumbnail is also very good

  • @simarjeetsingh961
    @simarjeetsingh961 3 місяці тому

    Awesome explaination , very clearly explained . I was stuck on this question for days !! But in 20 mins I fully understood the solution and very clear and intuitive Implementation . Keep Going ! 🔥

  • @deepanshusharma4028
    @deepanshusharma4028 3 місяці тому

    Great explanation 💯

  • @devyanshsharma1366
    @devyanshsharma1366 3 місяці тому

    great wrk bro can u share your codeforces profile??

  • @sparky_script
    @sparky_script 4 місяці тому

    Don

  • @simarjeetsingh961
    @simarjeetsingh961 4 місяці тому

    🔥🔥

  • @vickyroy3595
    @vickyroy3595 5 місяців тому

    no sound

  • @simarjeetsingh961
    @simarjeetsingh961 5 місяців тому

    Awesome 🔥

  • @simarjeetsingh961
    @simarjeetsingh961 5 місяців тому

    Amazing Screencast , Thanks for the motivation !

  • @simarjeetsingh961
    @simarjeetsingh961 5 місяців тому

    🔥

  • @PRANAYJAIN-lt7ug
    @PRANAYJAIN-lt7ug 5 місяців тому

    Kalpit bhai tuitions de do

  • @simarjeetsingh961
    @simarjeetsingh961 5 місяців тому

    amazing video

  • @deepanshusharma4028
    @deepanshusharma4028 5 місяців тому

    Aap sare contests dete ho on all platforms?🙌

    • @kalpitsancheti803
      @kalpitsancheti803 5 місяців тому

      @@deepanshusharma4028 haan bhai sab jagah deta hun

    • @deepanshusharma4028
      @deepanshusharma4028 5 місяців тому

      @@kalpitsancheti803 any tips for improvement?🙏

    • @kalpitsancheti803
      @kalpitsancheti803 5 місяців тому

      @@deepanshusharma4028 aap bhi sab jagah diya karo

    • @deepanshusharma4028
      @deepanshusharma4028 5 місяців тому

      ​@@kalpitsancheti803Ok sir🙏👍

    • @GAO_KA_लड़का_Engineer
      @GAO_KA_लड़का_Engineer 5 місяців тому

      Questions nhi bn rhe abhi tk dsa me array tk pdha hu or basic string janthu . Ky kru bhiy plz help contest du y DSA pdhi?😢😢

  • @krishankant_
    @krishankant_ 5 місяців тому

    Speedy 🗿🗿

  • @deepanshusharma4028
    @deepanshusharma4028 5 місяців тому

    Gr8 speed on A and B and clutch in the end for C👍🔥

  • @anonymous.234
    @anonymous.234 5 місяців тому

    Tourist bhai side hato Kalpit Don aa rhe hai

  • @DHANANJAYSINGH-mt9ku
    @DHANANJAYSINGH-mt9ku 5 місяців тому

    First comment

  • @ParthAgrawal-x6j
    @ParthAgrawal-x6j 5 місяців тому

    can you tell me why it is giving me TLE on this import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc=new Scanner(System.in); int t=sc.nextInt(); while(t-->0) { int n=sc.nextInt(); int a[]=new int[n]; int b[]=new int[n]; int count=0; for(int i=0;i<n;i++) { a[i]=sc.nextInt(); } for(int i=0;i<n;i++) { b[i]=sc.nextInt(); if(a[n-1-i]!=b[i]) { count++; } } if(Arrays.equals(a, b) || count==0) { System.out.println("Bob"); } else { System.out.println("Alice"); } } } }

    • @kalpitsancheti803
      @kalpitsancheti803 5 місяців тому

      I think the problem is with arrays.equals function .. from what I read on stack overflow it is not recommended to use it ... I am also not completely aware what is wrong in using it

    • @ParthAgrawal-x6j
      @ParthAgrawal-x6j 5 місяців тому

      @@kalpitsancheti803 ok thanku

  • @pramodhsairam9670
    @pramodhsairam9670 6 місяців тому

    Can you do a video on VS code setup for comp programming?

    • @kalpitsancheti803
      @kalpitsancheti803 6 місяців тому

      Its not much .. A extension named cph helper and cph submit . Moreover there is a template as well which i use .. There are many videos on youtube sharing this

  • @aadityachachra
    @aadityachachra 6 місяців тому

    First 🥇

  • @simarjeetsingh961
    @simarjeetsingh961 6 місяців тому

    Awesome

  • @aadityachachra
    @aadityachachra 7 місяців тому

    Second

  • @simarjeetsingh961
    @simarjeetsingh961 7 місяців тому

    First

  • @Guesswho8812
    @Guesswho8812 7 місяців тому

    reported was promoting cheating

  • @IamAbhiinav
    @IamAbhiinav 7 місяців тому

    bro why streaming solutions ?

    • @varunsharma1738
      @varunsharma1738 7 місяців тому

      @@IamAbhiinav he's streaming after the contest gets over.

    • @IamAbhiinav
      @IamAbhiinav 7 місяців тому

      @@varunsharma1738 ohh sorry mb! didn't knew it

  • @varunsharma1738
    @varunsharma1738 7 місяців тому

    First comment