allcoding1
29.3K subscribers
2.19K photos
2 videos
70 files
804 links
Download Telegram
import java.util.Scanner;

public class RotateNumberArray {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        // Input the number
        System.out.println("Enter the number:");
        String input = scanner.next();
        int n = input.length();

        // Convert the number into an array of digits
        int[] arr = new int[n];
        for (int i = 0; i < n; i++) {
            arr[i] = Character.getNumericValue(input.charAt(i));
        }

        // Input the number of rotations
        System.out.println("Enter the number of rotations:");
        int rotations = scanner.nextInt();

        // Perform the rotation
        int[] rotatedArray = rotateArray(arr, rotations);

        // Print the rotated array as a number
        System.out.println("Rotated Number:");
        for (int digit : rotatedArray) {
            System.out.print(digit);
        }
        scanner.close();
    }

    public static int[] rotateArray(int[] arr, int rotations) {
        int n = arr.length;

        // Normalize the rotations
        rotations = rotations % n;

        // Create a new array to hold the rotated result
        int[] result = new int[n];

        // Copy the last 'rotations' elements to the beginning
        for (int i = 0; i < rotations; i++) {
            result[i] = arr[n - rotations + i];
        }

        // Copy the remaining elements
        for (int i = rotations; i < n; i++) {
            result[i] = arr[i - rotations];
        }

        return result;
    }
}

Sample input

123456

2

Sample Output

561234
Java

19/1/25

Wipro exam
🎯Software Dev Engineer, Amazon University Talent Acquisition


Location:- IND, KA, Bengaluru
Job role:- Software Development
BASIC QUALIFICATIONS
- Bachelor's degree or equivalent

Apply Now:- www.itjobs.services
πŸ”₯πŸ”₯MSI Thin 15 Intel Core i5 12th Gen 12450H - (16 GB/512 GB SSD/Windows 11 Home/4 GB Graphics/NVIDIA GeForce RTX 3050/144 Hz)

🎁 Deal Price : β‚Ή45,790

Buy Here : https://fkrt.co/0AshyW

πŸ’₯ Bank Offer : β‚Ή6,200 Instant discount On HDFC Credit Card EMI Txn

⚑️⚑️1,000 Off With Using 100 SuperCoins
TCS NQT Mass Hiring for Freshers:

Graduation Year: 2025

Eligibility: BTech / BE / MTech / ME / MCA / MSc / MS

Job Roles:
Ninja - 3.36 LPA
Digital - 7 LPA
Prime - 9 LPA

Apply Link: https://www.tcs.com/careers/india/tcs-fresher-hiring-nqt-batch-2025



Registration End Date: 23rd March
Test Date: 15th March onwards
Zoho Off Campus Hiring Announced For Freshers and Exp as Software Developer

βœ“ Apply Link:
https://careers.zohocorp.com/forms/fcc89b5ebd373d598e0224d10f2199d1df76b48507184e42d200f0fd7de96aff

βœ“ Job Role: Software Developer

βœ“ Experience: 0 to 3 Year

βœ“Last Date: 7 March
5_6282721806046467712.pdf
193.4 KB
125+ most asked python questions βœ…
Company name: Portcast
Role: Data Science Intern
Batch Eligible: 2025 & 2026 graduates
Location: Remote

Apply Link: https://jobs.lever.co/portcast/7ec43ef0-d521-4df3-9f51-58e72a839538
Company name: Medplus
Role: Software Engineer
Batch Eligible: 2023/2024/2025
Location: Hyderabad

Apply Link: https://itcareers.medplusindia.com/job-openings
πŸ“ŒIT learning courses
πŸ“ŒAll programing courses
πŸ“ŒAbdul bari courses
πŸ“ŒAshok IT
πŸ“ŒLinux
πŸ“ŒNetworking
πŸ“ŒDesign patterns
πŸ“ŒDonet
πŸ“ŒDocker
πŸ“ŒEntity framework
πŸ“ŒNode.js
πŸ“ŒASP. Net
πŸ“ŒAps. Net cro
πŸ“Œjava
πŸ“ŒJavaScript
πŸ“Œfull stack developer

Tutorials + Books + Courses + Trainings + Workshops + Educational Resources

πŸ”ΉData science
πŸ”ΉPython
πŸ”ΉArtificial Intelligence
πŸ”ΉAWS Certified
πŸ”ΉCloud
πŸ”ΉBIG DATA
πŸ”ΉData Analytics
πŸ”ΉBI
πŸ”ΉGoogle Cloud Platform
πŸ”ΉIT Training
πŸ”ΉMBA
πŸ”ΉMachine Learning
πŸ”ΉDeep Learning
πŸ”ΉEthical Hacking
πŸ”ΉSPSS
πŸ”ΉStatistics
πŸ”ΉData Base
πŸ”ΉLearning language resources  English , πŸ‡«πŸ‡·

π‚π˜ππ„π‘ π’π„π‚π”π‘πˆπ“π˜ 𝐀𝐋𝐋  π‚πŽπ”π‘π’π„
⚑️ Reconnaissance and Footprinting
⚑️ Network Scanning
⚑️ Enumeration
⚑️ Firewalls HIDs Honeypot
⚑️ Malware and Threats
⚑️ Mobile Platform
⚑️ Pentesting
⚑️ Sql Injection
⚑️ System Hacking
⚑️ Web Application
⚑️ Wireless Network
⚑️ Cloud Computing
⚑️ Web Server
⚑️ Social Engineering
⚑️ Session Hijacking
⚑️ Sniffing
⚑️ BufferOverflow
⚑️ Cryptography
⚑️ Denial Of Service


All courses (80 rupees)
Lifetime access

Contact:- @meterials_available
Mitsogo is hiring Frontend Developer


Apply link πŸ‘‡

www.itjobs.services