Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~4K People Reached
Favorite Tags
Member Avatar for ashkash

I need to figure out the execution time of the following algorithm in terms of n. x=2 while (x < n) { x=2^x } I think it is O(log n) but just wanted to get some confirmation to make sure I am approaching this correctly. Thanks.

Member Avatar for invisal
0
93
Member Avatar for ashkash

I have a 2d array with x and y coordinates. I need to figure out the north most, south most, east most, and west most points and print them out. I figure the best way to do this is to find the minimum x value and the corresponding point will …

0
67
Member Avatar for ashkash

I need to take an n number of x and y coordinates from the user and figure out some information based on the inputted points (northmost, southmost, etc.) I wanted to know what the best data structure would be to store the inputted x and y coordinates and be able …

Member Avatar for jwenting
0
58
Member Avatar for ashkash

I have an array with 6 items and I need to generate all permutations of lengths 4, 5, and 6. For example, if my array has a, b, c, d,e, f then permutations of length 4 would be: abcd abce abcf ... pemutations of length 5 would be: abcde abcdf …

Member Avatar for ashkash
0
189
Member Avatar for ashkash

I need to perform a sha-1 hash on a byte array. The byte array needs to be hashed with all combinations of a minimum of 4 bytes to a maximum of all 9 bytes of the following bytes: 00 01 02 03 04 05 06 07 08 So the following …

0
72
Member Avatar for ashkash

I have a number of files in a folder that are number as 1, 2, 3, 4, 5, 6, etc. I also have a text file in the same folder that identifies each of these numbered files and gives their path location. The text file looks like this: 1 C:\system\Apps\file1.exe …

Member Avatar for mittelgeek
0
410
Member Avatar for ashkash

I have a number of files in a folder that are named as numbers like 1, 2, 3, 4, 5, 6, etc. I also have a text file in the same folder that identifies each of these numbered files and gives their path location. The text files looks like this: …

Member Avatar for Comatose
0
186
Member Avatar for ashkash

I am trying to combine byte values into a long variable. I have four bytes each in an unsigned char: unsigned char a = BC; unsigned char b = 1E; unsigned char c = 04; unsigned char d = 00; I want to have it so I can put the …

Member Avatar for rpiper138
0
2K
Member Avatar for ashkash

I am trying to write some information out to a file. I have a string in hex values and I need to write this out to the output file. The hex string I have is 4b70 4772 64. The string equivalent is KpGrd. I have: char a[] = "4b7047726400"; Then …

Member Avatar for ArkM
0
91
Member Avatar for ashkash

I have a text box on a web page where I am allowing users to enter text. The maximum that can be entered is 500 characters so when the user clicks submit this validation works. The validation works, but the problem is that when the user enters a character such …

Member Avatar for sudhamp
0
74
Member Avatar for ashkash

I have strings in Java where each one is as follows: "Case Number XXX-XXX-XXX" The "XXX-XXX-XXX" part is different for each string. I want to just extract the "XXX-XXX-XXX" portion of each string. I am assuming this is the third token in the string. What would be the best way …

Member Avatar for stultuske
0
150
Member Avatar for ashkash

I need to get the current date in the format MM/DD/YYYY and compare it to another string in the same format to see if the current date is greater than the string date. What is the best way of doing this? thanks.

Member Avatar for Ezzaral
0
101
Member Avatar for ashkash

I have data in a list and each entry in the list is seperated as follows: XXXXX,XX/XX/XXXX Where the X represents a number. The data after the comma is supposed to be a date and could possibly be null. I need to take the first part of the data before …

Member Avatar for javaAddict
0
111
Member Avatar for ashkash

I am trying to implement a customer survey into our webpages. The survey consists of a javascript file which launches an html file in an iframe. When the user meets certain parameters defined in the js file it launches the iframe. This works fine in Firefox and the iframe is …

Member Avatar for ~s.o.s~
0
83
Member Avatar for ashkash

I need some help using the MIPS ISA. Given a word I need to extract the four byte values that make up the word. For example, given .word 5 if I store the word in a register, $t1, I need to need perform some operation on this to get out …

Member Avatar for Salem
0
50
Member Avatar for ashkash

I need to write a program in MIPS that will find the saddle points of a 4x4 matrix. It will print the value of the saddle points and if there is no saddle points it will print a message that says so. A saddle point is a value which is …

Member Avatar for andor
0
137