Given an array of ints length 3, return a new array with the elements in reverse order, so {1, 2, 3} becomes {3, 2, 1}.
reverse3({1, 2, 3}) → {3, 2, 1}
reverse3({5, 11, 9}) → {9, 11, 5}
reverse3({7, 0, 0}) → {0, 0, 7}
public int[] reverse3(int[] nums) {
int[] rev={nums[2],nums[1],nums[0]};
return rev;
}
reverse3({1, 2, 3}) → {3, 2, 1}
reverse3({5, 11, 9}) → {9, 11, 5}
reverse3({7, 0, 0}) → {0, 0, 7}
Solution:
public int[] reverse3(int[] nums) {
int[] rev={nums[2],nums[1],nums[0]};
return rev;
}
website design agencies
ReplyDeleteWonderful, just what a blog it is! This blog has provided the helpful data to us continue the good work.
Best graphic design firms, demonstrated a high-level understanding of the interactive design firms requirements website design agencies , and executed the project well.
ReplyDeleteThe team impressed with their candid and transparent approach
ReplyDeletebranding companies in San Francisco
Outstanding blog, in my opinion site owners should acquire a great deal out of this blog its very user welcoming.
ReplyDeleteinteractive design agencies
Thanks for sharing this with so much of detailed information, its much more to learn from your article. Keep sharing such good stuff.
ReplyDeleteWrite fo Us Betting Guest Posts providing an opportunity to submit a guest post on our General Blog. Gambling Online Betting compelling guest posts on Gambling, Casino, Betting, Sports Betting, Guest Blogging, and various categories topics to write for us. Do you have expertise on a topic that you’d love to share with our audience? These are a great way to share your experience and advice with others so that they can start, grow business and their financial situations. Write for us to get Expand your outreach, Promote your Business and Products at a high authority website.
Thanks for sharing this with so much of detailed information, its much more to learn from your article. Keep sharing such good stuff. Are you a passionate and knowledgeable sports fan who is also a winning sports bettor. If this sounds like you and you have the ability to get your points across in a clear and easy to understand way then you may be just what we are looking for in a sportscasinobetting. Write for us Gambling
ReplyDeleteThanks for sharing this with so much of detailed information, its much more to learn from your article. Keep sharing such good stuff.
ReplyDeleteemploymentexchange
Browse our Employment Exchange job search for job listings, employment opportunities, openings, and hiring resources in Unites States. Find jobs with Employment Exchange businesses, ministries, and nonprofits.
Thanks for sharing this with so much of detailed information, its much more to learn from your article. Keep sharing such good stuff.
ReplyDeleteTypes of Flooring The type of flooring you choose can make a significant difference to the décor and function of your home.
Thanks for sharing this with so much of detailed information, its much more to learn from your article. Keep sharing such good stuff.
ReplyDeleteLily Lockett
Lily Lockett is a best collection of stylish & beautiful bracelets made from Silicone and stainless steel in different colors, Kids bracelets, kids charms, girls charms and girls bracelets.
Digital Latest News is an Internet of Things guide for Latest technology News, Trends, and Updates for busy professionals in digital marketing, social media, web analytics, content marketing, digital strategy. We empower posts and discoursed on social networks, marketing, online advertising, technology, gadgets, and app reviews. Throughout the day our team works on updating you with the latest news and top trends in the Technology Industry.
ReplyDeletedigital marketing write for us
Vmovee is not that old site for streaming movies online but when it comes to watch movies online, it has such a large database of movies from various genre that you can wish to watch. Not only movies, but you can also watch TV shows online as well. Also with movies, you can go over to its Popular movies, Recent movies or featured movies section. With each movie page on Vmovee, you can see the perfect short description about the movie, as well as the release year, categories under which that particular movie falls into, name of actors, working on that movie, etc.
ReplyDeletevmovee