STRINGXOR | CONSECUTIVE XOR | July Lunchtime 110 2022 | Problem Solutions | CodeChef

  Рет қаралды 3,773

Learn to Code with CodeChef

Learn to Code with CodeChef

Күн бұрын

Пікірлер: 9
@_SarveshJoshi
@_SarveshJoshi 2 жыл бұрын
Whole lotta good explanation brother! Never thought a Carti fan will explain me Competitive Programming Problems
@JunaidAhmed-jd5kq
@JunaidAhmed-jd5kq 2 жыл бұрын
Great Explanation bro😍
@ka_ka3141
@ka_ka3141 2 жыл бұрын
What's the intuition of alternate strings
@ashutoshmishra3690
@ashutoshmishra3690 2 жыл бұрын
very well explained thank you
@dronrahangdale2361
@dronrahangdale2361 2 жыл бұрын
nice bro like the explanation point to point 😊✌️
@sarveshsugandhbarnwal9809
@sarveshsugandhbarnwal9809 2 жыл бұрын
Nice explanation Gg
@beinghappy9223
@beinghappy9223 2 жыл бұрын
Killer intuition
@senor_nathak
@senor_nathak 2 жыл бұрын
Sir java me solution bolo na
@nikgshort3974
@nikgshort3974 2 жыл бұрын
import java.util.Scanner; class Solution3{ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int t = scanner.nextInt(); while(t-- > 0){ int n = scanner.nextInt(); String sa = scanner.next(); String sb = scanner.next(); boolean isEqual = true; boolean isBAlter = true; boolean sa0 = false; boolean sa1 = false; boolean sb0 = false; boolean sb1 = false; for(int i = 0 ; i < n ; i++){ if(sa.charAt(i) == '0'){ sa0 = true; }else{ sa1 = true; } if(sb.charAt(i) == '0'){ sb0 = true; } else{ sb1 = true; } if(sa.charAt(i) != sb.charAt(i)){ isEqual = false; } if(i >= 1 && sb.charAt(i) == sb.charAt(i - 1)) isBAlter = false; } if(isEqual) System.out.println("YES"); else{ if((!sa1 && sb1) || isBAlter) System.out.println("NO"); else System.out.println("YES"); } } } }
INTRDSGN  | INTERIOR DESIGN | July Lunchtime 110 2022 | Problem Solutions | CodeChef
6:56
Learn to Code with CodeChef
Рет қаралды 2,8 М.
The CUTEST flower girl on YouTube (2019-2024)
00:10
Hungry FAM
Рет қаралды 48 МЛН
Bend The Impossible Bar Win $1,000
00:57
Stokes Twins
Рет қаралды 47 МЛН
Electric Flying Bird with Hanging Wire Automatic for Ceiling Parrot
00:15
Winning Codeforces Round 971 (Div. 4) in honor of @que_tourist
1:39:42
Why Isn't Functional Programming the Norm? - Richard Feldman
46:09
Dynamic Programming isn't too hard. You just don't know what it is.
22:31
DecodingIntuition
Рет қаралды 140 М.
The 5 Levels Of Text Splitting For Retrieval
1:09:00
Greg Kamradt (Data Indy)
Рет қаралды 69 М.
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 306 М.
Intro to Competitive Programming
11:41
Junferno
Рет қаралды 775 М.
Introducing Raspberry, an Open Source attempt to recreate Strawberry
29:12
EZSPEAK  | EASY PRONUNCIATION | July Lunchtime 110 2022 | Problem Solutions | CodeChef
13:41
Understanding and implementing a Hash Table (in C)
24:54
Jacob Sorber
Рет қаралды 353 М.
The CUTEST flower girl on YouTube (2019-2024)
00:10
Hungry FAM
Рет қаралды 48 МЛН