'Coding has over 700 languages', '67% of programming jobs aren’t in the technology industry', 'Coding is behind almost everything that is powered by electricity'

Public Discussion

All discussions

Interview problems

Interview experiences

Contests and hackathons

Careers and placements

Guides and resources

General discussion

Support and feedback

AMA

Post a new discussion

Ninja Tip!

Descriptive titles get more views and replies. For eg. 'How do you prepare for data structures?' instead of 'data structures'

Add Tags
All discussions

Recent Posts

Top Posts

All tags
CodeStudio Library | Introduction to Computer Networks
Guides and resources
A computer network is a collection of interconnected computers and other devices that communicate with each other.
Read Full Article: https://www.codingninjas.com/studio/library/introduction-to-computer-networks
profile
Monika Yadav
Published On 28-Feb-2024
0 views
1 replies
0 upvotes
CodeStudio Library | Comments in WordPress
Guides and resources
This blog helps you clear your understanding of what comments are and how to enable them in WordPress.
Read Full Article: https://www.codingninjas.com/studio/library/comments-in-wordpress
profile
Purswani Dineshkumar
Published On 27-Feb-2024
10 views
2 replies
0 upvotes
CodeStudio Library | What is Search Engine Optimization?
Guides and resources
In this blog, we will learn about Search Engine Optimization(SEO).
Read Full Article: https://www.codingninjas.com/studio/library/what-is-search-engine-optimization
profile
rjt_007
Published On 26-Feb-2024
8 views
1 replies
0 upvotes
Secret Cipher Event | 26 Feb, 2024 | Post Contest Discussion
Contests and hackathons

Hey Ninjas!

This is a post to ask doubts and share your logic for solving questions from Secret Cipher Event! πŸ˜„

If you face any issues during the contest, do let us know by replying below. ✌️

How was your experience in the contest or got any feedback? Let us know here (link)

profile
Codestudio
Published On 26-Feb-2024
205 views
0 replies
0 upvotes
Tapglobe coding test | 25 Feb, 2024 | Post Contest Discussion
Contests and hackathons

Hey Ninjas!

This is a post to ask doubts and share your logic for solving questions from Tapglobe coding test! πŸ˜„

If you face any issues during the contest, do let us know by replying below. ✌️

How was your experience in the contest or got any feedback? Let us know here (link)

profile
Codestudio
Published On 25-Feb-2024
50 views
0 replies
0 upvotes
Rotate the image by 90 degree .. Leetcode problem number -- 48
Support and feedback

class Solution {

public:

    void rotate(vector<vector<int>>& matrix) {

        int row = matrix.size();

        int col = matrix[0].size();

 

        vector<int>ans;

 

        // intilize indexes....

 

        int firstrow = 0;

        int firstcol = 0;

 

        int lastrow = row - 1;

        int lastcol = col -1;   

        while(firstcol < col){

            for(int index = lastrow ; index >= firstrow ;  index--){

                ans.push_back(matrix[index][firstcol]);

            }

            firstcol++;  

        }

       

    }

};

 

 

Input: matrix = [[1,2,3],[4,5,6],[7,8,9]] Output: [[7,4,1],[8,5,2],[9,6,3]]

 

 what is the problem in my code >>>

profile
Kunall23err
Published On 25-Feb-2024
17 views
0 replies
0 upvotes
CodeStudio Library | Batch Operating System
Guides and resources
You will learn about the batch operating system, its kinds, how it works, and its benefits and drawbacks in this article.
Read Full Article: https://www.codingninjas.com/studio/library/what-is-batch-operating-system
profile
Sanjana Yadav
Published On 24-Feb-2024
13 views
1 replies
0 upvotes
KICCS-D-HACK 24.7 Round 2 | 24 Feb, 2024 | Post Contest Discussion
Contests and hackathons

Hey Ninjas!

This is a post to ask doubts and share your logic for solving questions from KICCS-D-HACK 24.7 Round 2! πŸ˜„

If you face any issues during the contest, do let us know by replying below. ✌️

How was your experience in the contest or got any feedback? Let us know here (link)

profile
Codestudio
Published On 24-Feb-2024
42 views
0 replies
0 upvotes
CodeStudio Library | How To Ace Dynamic Programming in Competitions
Guides and resources
profile
Published On 24-Feb-2024
10 views
1 replies
0 upvotes
Merging two sorted Arrays
Interview problems

import java.io.*;

import java.util.* ;

 

public class Solution {

    public static int[] ninjaAndSortedArrays(int arr1[], int arr2[], int m, int n) {

        // Write your code here.

       ArrayList<Integer> list = new ArrayList<>();

       for(int i =0;i<arr1.length-arr2.length;i++)

       { list.add(arr1[i]); }

       for(int i : arr2)

       { list.add(i); }

       int index = 0;

       Collections.sort(list);

       for(int i : list)

       { arr1[index++] = i;}

       return arr1;

    }

}

profile
Harsha2004
Published On 23-Feb-2024
71 views
0 replies
0 upvotes