Extra Element | Daily Dose - 3 | Interview Questions | Geeks for Geeks | Tamil | code io

  Рет қаралды 4,550

code io - Tamil

code io - Tamil

3 жыл бұрын

Index Of an Extra Element
practice.geeksforgeeks.org/pr...
You are given a couple of arrays, you are expected return the missing element from the second array
Follow us in Instagram for more updates
/ code.i.o
#gfg #DailyDose #codeio

Пікірлер: 11
@kidswellstudy6610
@kidswellstudy6610 Жыл бұрын
K but you have to change your concept...your program will work only when the missing number is after the mid position...in the case of before mid it will be wrong
@suganeshrajaram5497
@suganeshrajaram5497 3 жыл бұрын
Nice✨
@codeio
@codeio 3 жыл бұрын
Thanks thanks 😊
@nithishkumark1644
@nithishkumark1644 3 жыл бұрын
Questions la bayangrama prepare panni irukkanga ✨✨
@codeio
@codeio 3 жыл бұрын
Thanks thanks 😅😅
@harikrish07
@harikrish07 8 ай бұрын
Solution 1: Time complexity:O(log N) def myfun(n,a,b): s=0 e=n-1 while s
@karthekeyanz
@karthekeyanz 2 жыл бұрын
// Time Complexity: O(N) + Space Complexity: O(1) > Brute Force Approach int findExtra(int a[], int b[], int n) { if (a == null || b == null || a.length == b.length) return -1; int minLen = a.length < b.length ? a.length : b.length; for (int i = 0; i < minLen; i++) { if (a[i] != b[i]) return i; } return a.length > b.length ? a.length - 1 : b.length - 1; }
@codeio
@codeio 2 жыл бұрын
Great Approach bro🤩🤩🤩
@karthekeyanz
@karthekeyanz 2 жыл бұрын
// Time Complexity: O(log N) + Space Complexity: O(1) > Binary Search Approach int findExtra(int a[], int b[], int n) { if (a == null || b == null || a.length == b.length) return -1; int start = 0, end = n - 1, extraElementIndex = 0; while (start
@codeio
@codeio 2 жыл бұрын
Awesome bro🤩🤩🤩
I'm Excited To see If Kelly Can Meet This Challenge!
00:16
Mini Katana
Рет қаралды 31 МЛН
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 74 МЛН
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 29 МЛН
ТЫ С ДРУГОМ В ДЕТСТВЕ😂#shorts
01:00
BATEK_OFFICIAL
Рет қаралды 6 МЛН
LeetCode 442. Find All Duplicates in an Array (Solution Explained)
12:37
Jersey Marakkavillayae full video song - Jersey | Anirudh
4:14
Jayanthan S
Рет қаралды 485 М.
136. Single Number | Interview Preparation | Tamil | code io
10:22
code io - Tamil
Рет қаралды 2,5 М.
I'm Excited To see If Kelly Can Meet This Challenge!
00:16
Mini Katana
Рет қаралды 31 МЛН